spec\Fenos\Notifynder\Notifications\NotificationManagerSpec::it_get_not_read_notification PHP Метод

it_get_not_read_notification() публичный Метод

public it_get_not_read_notification ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo, NotifynderCollection $collection )
$notificationRepo Fenos\Notifynder\Contracts\NotificationDB
$collection Fenos\Notifynder\Models\NotifynderCollection
    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([]);
    }