1 | <?php |
||
8 | class FindResourceLastVersionCommandTest extends \PHPUnit_Framework_TestCase |
||
9 | { |
||
10 | /** |
||
11 | * @var ResourceDO |
||
12 | */ |
||
13 | protected $resourceDO; |
||
14 | /** |
||
15 | * @var Filesystem |
||
16 | */ |
||
17 | protected $filesystem; |
||
18 | |||
19 | 3 | protected function setUp() |
|
25 | |||
26 | /** |
||
27 | * @return FindResourceLastVersionCommand |
||
28 | */ |
||
29 | 3 | public function getCommand(ResourceDO $resourceDO) |
|
33 | |||
34 | /** |
||
35 | * @return ResourceDO |
||
36 | */ |
||
37 | 1 | public function getResourceDO() |
|
41 | |||
42 | /** |
||
43 | * @return ResourceDO |
||
44 | */ |
||
45 | 2 | public function getResourceDOMock() |
|
55 | |||
56 | /** |
||
57 | * @expectedException \Staticus\Resources\Exceptions\CommandErrorException |
||
58 | * @expectedExceptionMessage Can not look for options: resource is empty |
||
59 | */ |
||
60 | 1 | public function testFindEmptyResourceVersion() |
|
66 | |||
67 | 1 | public function testFindVersion1() |
|
82 | |||
83 | 1 | public function testFindVersion8() |
|
98 | } |
||
99 |