How to properly make assertion after redirection?
$crawler = $client->submit($form);
$client->followRedirect();
//$response = $client->getResponse()->getContent();
$this->assertTrue($crawler->filter('html:contains("foo")')->count() > 0);
Debugger show that $response
have content that I expect, with a foo
word, but assertion failed.