/**
  * Get number of notification
  * not read
  *
  * @param         $to_id
  * @param Closure $filterScope
  * @return mixed
  */
 public function countNotRead($to_id, Closure $filterScope = null)
 {
     return $this->notifynderRepo->countNotRead($to_id, $this->entity);
 }
예제 #2
0
 /** @test */
 public function it_delete_notification_by_categories(NotificationDB $notificationRepo)
 {
     $categoryName = 'notifynder.test';
     $notificationRepo->deleteByCategory($categoryName, false)->shouldBeCalled()->willReturn(1);
     $this->deleteByCategory($categoryName)->shouldReturn(1);
 }
 /**
  * Get number of notification
  * not read
  *
  * @param $to_id
  * @return mixed
  */
 public function countNotRead($to_id)
 {
     return $this->notifynderRepo->countNotRead($to_id, $this->entity);
 }