Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public function testGetStaffMembers() |
||
26 | { |
||
27 | /** @var StaffDirectory $directory */ |
||
28 | $directory = $this->objFromFixture(StaffDirectory::class, 'default'); |
||
29 | /** @var StaffMember $one */ |
||
30 | $one = $this->objFromFixture(StaffMember::class, 'one'); |
||
|
|||
31 | /** @var StaffMember $two */ |
||
32 | $two = $this->objFromFixture(StaffMember::class, 'two'); |
||
33 | /** @var StaffMember $three */ |
||
34 | $three = $this->objFromFixture(StaffMember::class, 'three'); |
||
35 | |||
36 | $staff = $directory->getStaffMembers(); |
||
37 | $this->assertInstanceOf(DataList::class, $staff); |
||
38 | $this->assertEquals(3, $staff->count()); |
||
39 | } |
||
41 |