/** @test */
 function it_send_multiple_notification(SenderFactory $senderFactory, DefaultSender $sender, StoreNotification $storeNotification)
 {
     $notifications = [];
     $senderFactory->sendMultiple($notifications)->shouldBeCalled()->willReturn($sender);
     $sender->send($storeNotification)->shouldBeCalled()->willReturn(1);
     $this->sendMultiple($notifications)->shouldReturn(1);
 }
Esempio n. 2
0
 /**
  * Send a group of notifications
  * at once
  *
  * @param        $group_name
  * @param  array $info
  * @return mixed
  */
 public function sendGroup($group_name, $info = [])
 {
     return $this->senderFactory->sendGroup($group_name, $info)->send($this->storeNotification);
 }