| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function testRun() |
||
| 32 | { |
||
| 33 | $DbAdapterMock = $this->createMock(DbAdapter::class); |
||
| 34 | $DbAdapterMock->method('getNewRaw')->willReturn( |
||
| 35 | ['page' => 'bla', 'raw' => '{{Ouvrage |auteur=Pierre André|titre=Bla|}}'] |
||
| 36 | ); |
||
| 37 | $DbAdapterMock->method('sendCompletedData')->willReturn(true); |
||
| 38 | |||
| 39 | $complete = new OuvrageCompleteWorker($DbAdapterMock, false); |
||
| 40 | |||
| 41 | $this::assertSame( |
||
| 42 | true, |
||
| 43 | $complete->run(1) |
||
| 44 | ); |
||
| 48 |