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

actingAs any ability #120

Merged
merged 1 commit into from
Apr 3, 2020
Merged

actingAs any ability #120

merged 1 commit into from
Apr 3, 2020

Conversation

Dewbud
Copy link
Contributor

@Dewbud Dewbud commented Apr 2, 2020

Sanctum::actingAs(
    factory(User::class)->create(),
    ['*']
);

Doesn't work as described in the docs.
The mockery instance ends up looking for the argument '*' instead of responding with true to any can() call like the PersonalAccessToken does.

A change to Sanctum::actingAs() fixes this.

@taylorotwell taylorotwell merged commit 7bed5f7 into laravel:2.x Apr 3, 2020
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.

2 participants