public it_read_notifications_limit_to_a_given_number ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo ) | ||
$notificationRepo | Fenos\Notifynder\Contracts\NotificationDB |
public function it_read_notifications_limit_to_a_given_number(NotificationDB $notificationRepo)
{
$to_id = 1;
$numbers = 5;
$order = 'asc';
$notificationRepo->readLimit($to_id, null, $numbers, $order)->shouldBeCalled()->willReturn($numbers);
$this->readLimit($to_id, $numbers, $order)->shouldReturn($numbers);
}