Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.5] Allow testing anonymous notifiables #21379

Merged
merged 2 commits into from
Sep 25, 2017
Merged

[5.5] Allow testing anonymous notifiables #21379

merged 2 commits into from
Sep 25, 2017

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'] == '[email protected]';
        });

@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