Ejemplo n.º 1
0
 /** @test */
 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);
 }
 /**
  * Send single notification
  *
  * @param  array  $info
  * @return static
  */
 public function sendOne(array $info)
 {
     return $this->notifynderRepo->storeSingle($info);
 }