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); }