public function it_send_a_single_notification(NotificationDB $notificationRepo) { $notificationData = []; $notification = new Notification(); $notificationRepo->storeSingle($notificationData)->shouldBeCalled()->willReturn($notification); $this->sendOne($notificationData)->shouldReturnAnInstanceOf(Notification::class); }