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.7] Normalize user logged in application for testing purposes #25807

Closed
wants to merge 4 commits into from
Closed

[5.7] Normalize user logged in application for testing purposes #25807

wants to merge 4 commits into from

Conversation

ggcasuso
Copy link
Contributor

The actingAs method used in testing to make request as authenticated user may response with unexpected status, example found in this issue #25775

I added a normalize user method to setting wasRecentlyCreated property to false to avoid this.

We could use this method in the future to normalize user properties like we are in a real environment.

@ggcasuso ggcasuso changed the title Normalize user logged in application for testing purposes [5.7] Normalize user logged in application for testing purposes Sep 28, 2018
@taylorotwell
Copy link
Member

This could be a breaking change if the given user isn't even an Eloquent model? It is not guaranteed to be one, just to implement that interface.

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