@@ -27,7 +27,7 @@ public function testFormLogin($config)
27
27
28
28
$ this ->assertRedirect ($ client ->getResponse (), '/profile ' );
29
29
30
- $ text = $ client ->followRedirect ()->text ();
30
+ $ text = $ client ->followRedirect ()->text (null , true );
31
31
$ this ->assertStringContainsString ('Hello johannes! ' , $ text );
32
32
$ this ->assertStringContainsString ('You \'re browsing to path "/profile". ' , $ text );
33
33
}
@@ -47,7 +47,7 @@ public function testFormLogout($config)
47
47
$ this ->assertRedirect ($ client ->getResponse (), '/profile ' );
48
48
49
49
$ crawler = $ client ->followRedirect ();
50
- $ text = $ crawler ->text ();
50
+ $ text = $ crawler ->text (null , true );
51
51
52
52
$ this ->assertStringContainsString ('Hello johannes! ' , $ text );
53
53
$ this ->assertStringContainsString ('You \'re browsing to path "/profile". ' , $ text );
@@ -80,7 +80,7 @@ public function testFormLoginWithCustomTargetPath($config)
80
80
81
81
$ this ->assertRedirect ($ client ->getResponse (), '/foo ' );
82
82
83
- $ text = $ client ->followRedirect ()->text ();
83
+ $ text = $ client ->followRedirect ()->text (null , true );
84
84
$ this ->assertStringContainsString ('Hello johannes! ' , $ text );
85
85
$ this ->assertStringContainsString ('You \'re browsing to path "/foo". ' , $ text );
86
86
}
@@ -101,7 +101,7 @@ public function testFormLoginRedirectsToProtectedResourceAfterLogin($config)
101
101
$ client ->submit ($ form );
102
102
$ this ->assertRedirect ($ client ->getResponse (), '/protected_resource ' );
103
103
104
- $ text = $ client ->followRedirect ()->text ();
104
+ $ text = $ client ->followRedirect ()->text (null , true );
105
105
$ this ->assertStringContainsString ('Hello johannes! ' , $ text );
106
106
$ this ->assertStringContainsString ('You \'re browsing to path "/protected_resource". ' , $ text );
107
107
}
0 commit comments