Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
25 | public function testFindById() |
||
26 | { |
||
27 | $justiceRecord = $this->justice->findById(27791394); |
||
28 | $this->assertInstanceOf('Defr\Justice\JusticeRecord', $justiceRecord); |
||
29 | |||
30 | $people = $justiceRecord->getPeople(); |
||
31 | $this->assertCount(2, $people); |
||
32 | |||
33 | $this->assertArrayHasKey('Mgr. ROBERT RUNTÁK', $people); |
||
34 | $person = $people['Mgr. ROBERT RUNTÁK']; |
||
35 | $this->assertInstanceOf('DateTime', $person->getBirthday()); |
||
36 | $this->assertInternalType('string', $person->getAddress()); |
||
37 | } |
||
38 | |||
57 |