Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | public function testGetAll(){ |
||
11 | $checkpointList = ['a', 'b', 'c']; |
||
12 | $fsHelper = $this->getMockBuilder('Owncloud\Updater\Utils\FilesystemHelper') |
||
13 | ->disableOriginalConstructor() |
||
14 | ->getMock() |
||
15 | ; |
||
16 | $fsHelper->method('scandir') |
||
17 | ->willReturn($checkpointList) |
||
18 | ; |
||
19 | $locator = $this->getMockBuilder('Owncloud\Updater\Utils\Locator') |
||
20 | ->disableOriginalConstructor() |
||
21 | ->getMock() |
||
22 | ; |
||
23 | $checkpointMock = $this->getCheckpointInstance($locator, $fsHelper); |
||
24 | $actual = $checkpointMock->getAll(); |
||
25 | $this->assertEquals($checkpointList, $actual); |
||
26 | } |
||
27 | |||
34 |