Skip to content

Commit

Permalink
bug #3537 Add missing variable assignment (colinodell)
Browse files Browse the repository at this point in the history
This PR was submitted for the 2.2 branch but it was merged into the 2.3 branch instead (closes #3537).

Discussion
----------

Add missing variable assignment

Line 41 made use of $crawler which wasn't defined.

Commits
-------

8f41c15 Add missing variable assignment
  • Loading branch information
weaverryan committed Feb 11, 2014
2 parents d7e8262 + 4436773 commit 819949c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbook/testing/simulating_authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ with a request. The following example demonstrates this technique::
{
$this->logIn();

$this->client->request('GET', '/demo/secured/hello/Fabien');
$crawler = $this->client->request('GET', '/demo/secured/hello/Fabien');

$this->assertTrue($this->client->getResponse()->isSuccessful());
$this->assertGreaterThan(0, $crawler->filter('html:contains("Hello Fabien")')->count());
Expand Down

0 comments on commit 819949c

Please sign in to comment.