storeMultiple() public method

Save multiple notifications sent at once.
public storeMultiple ( array $info ) : mixed
$info array
return mixed
Example #1
0
 /**
  * Send multiple notifications
  *
  * @param  StoreNotification $sender
  * @return mixed
  */
 public function send(StoreNotification $sender)
 {
     return $sender->storeMultiple($this->infoNotifications);
 }
 /** @test */
 function it_send_multiple_notification(StoreNotification $storeNotification)
 {
     $multiple = [];
     $storeNotification->storeMultiple($multiple)->shouldBeCalled()->willReturn(1);
     $this->send($storeNotification)->shouldReturn(1);
 }