| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class CasesTest extends TestCase |
||
| 6 | { |
||
| 7 | public function testFindAll() |
||
| 14 | } |
||
| 15 | |||
| 16 | public function testFindOpen() |
||
| 17 | { |
||
| 18 | $body = '<kases type="array"><kase><id>1</id></kase><kase><id>2</id></kase></kases>'; |
||
| 19 | $resource = $this->getMockResource('cases', $body); |
||
| 20 | $results = $resource->findOpen(); |
||
|
|
|||
| 21 | $this->assertSameLastRequestUri('/kases/open.xml', $resource); |
||
| 22 | $this->assertCount(2, $results); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function testFindClosed() |
||
| 32 | } |
||
| 33 | } |
||
| 34 |