public it_find_a_notification_by_id ( Fenos\Notifynder\Contracts\NotificationDB $notificationRepo ) | ||
$notificationRepo | Fenos\Notifynder\Contracts\NotificationDB |
public function it_find_a_notification_by_id(NotificationDB $notificationRepo)
{
$notification_id = 1;
$notification = new Notification();
$notificationRepo->find($notification_id)->shouldBeCalled()->willReturn($notification);
$this->find($notification_id)->shouldReturnAnInstanceOf(Notification::class);
}