Fenos\Notifynder\Senders\SenderFactory::sendSingle PHP Метод

sendSingle() публичный Метод

Send Single Notification Sender.
public sendSingle ( array $infoNotifications, $category ) : SendOne
$infoNotifications array
$category
Результат SendOne
    public function sendSingle(array $infoNotifications, $category)
    {
        return new SendOne($infoNotifications, $category);
    }

Usage Example

Пример #1
0
 /** @test */
 function it_send_one_notification(SenderFactory $senderFactory, DefaultSender $sender, StoreNotification $storeNotification)
 {
     $notifications = [];
     $category = 1;
     $senderFactory->sendSingle($notifications, $category)->shouldBeCalled()->willReturn($sender);
     $sender->send($storeNotification, $category)->shouldBeCalled()->willReturn(1);
     $this->sendOne($notifications, $category)->shouldReturn(1);
 }
All Usage Examples Of Fenos\Notifynder\Senders\SenderFactory::sendSingle