リダイレクト後にアサーションを適切に行う方法は?
$crawler = $client->submit($form);
$client->followRedirect();
//$response = $client->getResponse()->getContent();
$this->assertTrue($crawler->filter('html:contains("foo")')->count() > 0);
デバッガーは$response
、私が期待するコンテンツを持っていることを示していますfoo
が、アサーションは失敗しました。