-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Security][Testing] Documented KernelBrowser::loginUser() #13362
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
[Security][Testing] Documented KernelBrowser::loginUser() #13362
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this contribution. I like this ... but I'm missing some details about what can I pass to the loginUser()
method. We may consider detailing that it must be a UserInterface
object.
dae2ff7
to
e4ad22b
Compare
Thanks Javier. I've updated the PR following your suggestions |
e4ad22b
to
4c169b4
Compare
Note: I've put this on hold, let's first wait if symfony/symfony#36112 gets merged |
PR closed, this ready to be merged imho |
4c169b4
to
2c6d6d4
Compare
Wouter, while merging this, I decided to not delete the This is an important article and many people rely on it. Redirecting to the main .. caution::
Starting from Symfony 5.1, the methods explained in this article are no
longer recommended to logging in users in your tests. Instead, use
:ref:`the loginUser() method <testing_logging_in_users>`. In some time, when most people are aware of this, we can remove the article and redirect. Thanks! |
@javiereguiluz the |
Yes, I think we could do that in the future ... not sure if it would work today. I'd need to double check it. |
8870
Fixes #13329
I think this is common enough to be put in the main article :)