Skip to content

Commit 5fb5ca2

Browse files
committed
Merge branch '6.4' into 7.1
* 6.4: Update testing.rst [DomCrawler] Fixing code typo
2 parents eaaf3f2 + 68ca943 commit 5fb5ca2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

components/dom_crawler.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ The result is an array of values returned by the anonymous function calls.
267267
When using nested crawler, beware that ``filterXPath()`` is evaluated in the
268268
context of the crawler::
269269

270-
$crawler->filterXPath('parent')->each(function (Crawler $parentCrawler, $i): avoid {
270+
$crawler->filterXPath('parent')->each(function (Crawler $parentCrawler, $i): void {
271271
// DON'T DO THIS: direct child can not be found
272272
$subCrawler = $parentCrawler->filterXPath('sub-tag/sub-child-tag');
273273

testing.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,10 @@ stores in the session of the test client. If you need to define custom
712712
attributes in this token, you can use the ``tokenAttributes`` argument of the
713713
:method:`Symfony\\Bundle\\FrameworkBundle\\KernelBrowser::loginUser` method.
714714

715+
To set a specific firewall (``main`` is set by default)::
716+
717+
$client->loginUser($testUser, 'my_firewall');
718+
715719
.. note::
716720

717721
By design, the ``loginUser()`` method doesn't work when using stateless firewalls.

0 commit comments

Comments
 (0)