get number Notifications
not read.
public countNotRead ( $toId, $entity, Closur\Closure $filterScope = null ) : mixed | ||
$toId | ||
$entity | ||
$filterScope | Closur\Closure | |
Результат | mixed |
/** @test */ function it_count_notification_not_read() { $this->createMultipleNotifications(); $countNotRead = $this->notificationRepo->countNotRead($this->to['id'], $this->to['type']); $this->assertEquals($this->multiNotificationsNumber, $countNotRead); }