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

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

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