Skip to content

Conversation

themsaid
Copy link
Member

Storing the notifiable in the fake notifications array will give us the change to do something like:

Notification::assertSentTo(new AnonymousNotifiable(), Notification::class, function($notification, $channels, $notifiable){
            return $notifiable->routes['mail'] == 'mail@yahoo.com';
        });

@taylorotwell taylorotwell merged commit 2be59db into laravel:5.5 Sep 25, 2017
@antonkomarev
Copy link
Contributor

Thank you @themsaid ! I've tried to write test just yesterday and understand that it's impossible. Was thought to create issue in internals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants