Commit 7671e7a
committed
minor symfony#21097 [Testing] Indicate how to use InMemoryUser in WebTestCase (peter17)
This PR was squashed before being merged into the 7.3 branch.
Discussion
----------
[Testing] Indicate how to use InMemoryUser in WebTestCase
I lost a couple hours today to understand why with
```
$client->loginUser(new InMemoryUser('admin', 'password', ['ROLE_ADMIN']));
```
my request was not authenticated...
So I propose the following addition to the documentation.
Best regards
Commits
-------
124be08 [Testing] Indicate how to use InMemoryUser in WebTestCase1 file changed
+21
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
717 | 738 | | |
718 | 739 | | |
719 | 740 | | |
| |||
0 commit comments