File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ The result is an array of values returned by the anonymous function calls.
267
267
When using nested crawler, beware that ``filterXPath() `` is evaluated in the
268
268
context of the crawler::
269
269
270
- $crawler->filterXPath('parent')->each(function (Crawler $parentCrawler, $i): avoid {
270
+ $crawler->filterXPath('parent')->each(function (Crawler $parentCrawler, $i): void {
271
271
// DON'T DO THIS: direct child can not be found
272
272
$subCrawler = $parentCrawler->filterXPath('sub-tag/sub-child-tag');
273
273
Original file line number Diff line number Diff line change @@ -712,6 +712,10 @@ stores in the session of the test client. If you need to define custom
712
712
attributes in this token, you can use the ``tokenAttributes `` argument of the
713
713
:method: `Symfony\\ Bundle\\ FrameworkBundle\\ KernelBrowser::loginUser ` method.
714
714
715
+ To set a specific firewall (``main `` is set by default)::
716
+
717
+ $client->loginUser($testUser, 'my_firewall');
718
+
715
719
.. note ::
716
720
717
721
By design, the ``loginUser() `` method doesn't work when using stateless firewalls.
You can’t perform that action at this time.
0 commit comments