public it_get_not_read_notification ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo, |
||
$notificationRepo | Fenos\Notifynder\Contracts\NotificationDB | |
$collection |
public function it_get_not_read_notification(NotificationDB $notificationRepo, NotifynderCollection $collection)
{
$entity_id = 1;
$limit = 10;
$paginate = null;
$notificationRepo->getNotRead($entity_id, null, $limit, $paginate, 'desc', null)->shouldBeCalled()->willReturn($collection);
$collection->parse()->shouldBeCalled()->willReturn([]);
$this->getNotRead($entity_id, $limit, $paginate, 'desc')->shouldReturn([]);
}