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

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

public it_delete_notification_limiting_the_number_of_the_given_entity ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo )
$notificationRepo Fenos\Notifynder\Contracts\NotificationDB
    public function it_delete_notification_limiting_the_number_of_the_given_entity(NotificationDB $notificationRepo)
    {
        $entity_id = 1;
        $numberLimit = 5;
        $order = 'asc';
        $notificationRepo->deleteLimit($entity_id, null, $numberLimit, $order)->shouldBeCalled()->willReturn($numberLimit);
        $this->deleteLimit($entity_id, $numberLimit, $order)->shouldReturn($numberLimit);
    }