| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function testAddNotifications(): void |
||
| 37 | { |
||
| 38 | $report_id = 2; |
||
| 39 | $developer = TableRegistry::getTableLocator()->get('Developers'); |
||
| 40 | $devs = $developer->find('all'); |
||
| 41 | $devs = $devs->enableHydration(false)->toArray(); |
||
| 42 | $this->Notifications->addNotifications($report_id); |
||
| 43 | $notifs = $this->Notifications->find('all', ['conditions' => ['report_id' => $report_id]]); |
||
| 44 | $notifs = $notifs->enableHydration(false)->toArray(); |
||
| 45 | $this->assertEquals(count($notifs), count($devs)); |
||
| 46 | } |
||
| 48 |