Fenos\Notifynder\Contracts\StoreNotification::storeSingle PHP Méthode

storeSingle() public méthode

Save a single notification sent.
public storeSingle ( array $info ) : Notification
$info array
Résultat Fenos\Notifynder\Models\Notification
    public function storeSingle(array $info);

Usage Example

 /** @test */
 function it_send_a_single_notification_having_the_category_(StoreNotification $storeNotification)
 {
     $infoNotification = ['category_id' => 1];
     $this->beConstructedWith($infoNotification);
     $storeNotification->storeSingle($infoNotification)->shouldBeCalled()->willReturn(new Notification());
     $this->send($storeNotification)->shouldReturnAnInstanceOf(Notification::class);
 }
All Usage Examples Of Fenos\Notifynder\Contracts\StoreNotification::storeSingle