| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function testView() |
||
| 18 | { |
||
| 19 | //Test 1: applicant can view manager |
||
| 20 | $ianApplicant = $this->createApplicant(); |
||
| 21 | $maryManager = $this->createManager(); |
||
| 22 | $canApplicantViewManager = $this->getManagerPolicy()->view($ianApplicant->user, $maryManager); |
||
| 23 | $this->assertTrue($canApplicantViewManager); |
||
| 24 | |||
| 25 | //Test 2: manager can view manager |
||
| 26 | $canManagerViewManager = $this->getManagerPolicy()->view($maryManager->user, $maryManager); |
||
| 27 | $this->assertTrue($canManagerViewManager); |
||
| 28 | } |
||
| 30 |