Пример #1
0
 /** @test */
 public function it_send_multiple_notification(NotificationDB $notificationRepo)
 {
     $notificationData = [];
     $notificationsSent = 5;
     $notificationRepo->storeMultiple($notificationData)->shouldBeCalled()->willReturn($notificationsSent);
     $this->sendMultiple($notificationData)->shouldReturn($notificationsSent);
 }
 /**
  * Send multiple notifications
  *
  * @param  array $info
  * @return mixed
  */
 public function sendMultiple(array $info)
 {
     return $this->notifynderRepo->storeMultiple($info);
 }