public it_send_a_single_notification_having_the_category_ ( Fenos\Notifynder\Contracts\StoreNotification $storeNotification ) | ||
$storeNotification | Fenos\Notifynder\Contracts\StoreNotification |
public 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);
}