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

Improve default auth tests inside the stubs #358

Merged
merged 2 commits into from
Feb 19, 2024
Merged

Conversation

Pilskalns
Copy link
Contributor

@Pilskalns Pilskalns commented Feb 18, 2024

This PR improves tests that are delivered through fresh Breeze install.

Currently, a flaw is within PasswordResetTest -> password can be reset with valid token - it only checks for session error messages, while the NewPasswordController method store could be returning an internal error (HTTP code 500).

Submitted changes adds a check for a successful return code which gives two things - there was no error in the controller logic and the resulting behaviour is in line with what is expected to happen.

@taylorotwell taylorotwell merged commit c8bd0a8 into laravel:1.x Feb 19, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants