Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public function testUpdateAddsModelsToTheIndex() |
||
14 | { |
||
15 | $solrClient = $this->getMockBuilder(Client::class) |
||
16 | ->setMethods(['update']) |
||
17 | ->getMock(); |
||
18 | |||
19 | $query = new Query(); |
||
20 | |||
21 | $solrClient->expects($this->once()) |
||
22 | ->method('update') |
||
23 | ->with($this->equalTo($query)); |
||
24 | |||
25 | $engine = new SolrEngine($solrClient); |
||
26 | |||
27 | $engine->update(Collection::make([new SolrEngineTestModel])); |
||
28 | } |
||
44 | } |