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

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

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