Skip to content

Commit 58490e5

Browse files
committed
Fix remaining deprecations
1 parent 8990456 commit 58490e5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/Symfony/Bundle/SecurityBundle/Tests/Functional/CsrfFormLoginTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function testFormLoginAndLogoutWithCsrfTokens($config)
2929

3030
$crawler = $client->followRedirect();
3131

32-
$text = $crawler->text();
32+
$text = $crawler->text(null, true);
3333
$this->assertStringContainsString('Hello johannes!', $text);
3434
$this->assertStringContainsString('You\'re browsing to path "/profile".', $text);
3535

@@ -56,7 +56,7 @@ public function testFormLoginWithInvalidCsrfToken($config)
5656

5757
$this->assertRedirect($client->getResponse(), '/login');
5858

59-
$text = $client->followRedirect()->text();
59+
$text = $client->followRedirect()->text(null, true);
6060
$this->assertStringContainsString('Invalid CSRF token.', $text);
6161
}
6262

@@ -75,7 +75,7 @@ public function testFormLoginWithCustomTargetPath($config)
7575

7676
$this->assertRedirect($client->getResponse(), '/foo');
7777

78-
$text = $client->followRedirect()->text();
78+
$text = $client->followRedirect()->text(null, true);
7979
$this->assertStringContainsString('Hello johannes!', $text);
8080
$this->assertStringContainsString('You\'re browsing to path "/foo".', $text);
8181
}
@@ -96,7 +96,7 @@ public function testFormLoginRedirectsToProtectedResourceAfterLogin($config)
9696
$client->submit($form);
9797
$this->assertRedirect($client->getResponse(), '/protected-resource');
9898

99-
$text = $client->followRedirect()->text();
99+
$text = $client->followRedirect()->text(null, true);
100100
$this->assertStringContainsString('Hello johannes!', $text);
101101
$this->assertStringContainsString('You\'re browsing to path "/protected-resource".', $text);
102102
}

src/Symfony/Bundle/SecurityBundle/Tests/Functional/FormLoginTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function testFormLogin($config)
2727

2828
$this->assertRedirect($client->getResponse(), '/profile');
2929

30-
$text = $client->followRedirect()->text();
30+
$text = $client->followRedirect()->text(null, true);
3131
$this->assertStringContainsString('Hello johannes!', $text);
3232
$this->assertStringContainsString('You\'re browsing to path "/profile".', $text);
3333
}
@@ -47,7 +47,7 @@ public function testFormLogout($config)
4747
$this->assertRedirect($client->getResponse(), '/profile');
4848

4949
$crawler = $client->followRedirect();
50-
$text = $crawler->text();
50+
$text = $crawler->text(null, true);
5151

5252
$this->assertStringContainsString('Hello johannes!', $text);
5353
$this->assertStringContainsString('You\'re browsing to path "/profile".', $text);
@@ -80,7 +80,7 @@ public function testFormLoginWithCustomTargetPath($config)
8080

8181
$this->assertRedirect($client->getResponse(), '/foo');
8282

83-
$text = $client->followRedirect()->text();
83+
$text = $client->followRedirect()->text(null, true);
8484
$this->assertStringContainsString('Hello johannes!', $text);
8585
$this->assertStringContainsString('You\'re browsing to path "/foo".', $text);
8686
}
@@ -101,7 +101,7 @@ public function testFormLoginRedirectsToProtectedResourceAfterLogin($config)
101101
$client->submit($form);
102102
$this->assertRedirect($client->getResponse(), '/protected_resource');
103103

104-
$text = $client->followRedirect()->text();
104+
$text = $client->followRedirect()->text(null, true);
105105
$this->assertStringContainsString('Hello johannes!', $text);
106106
$this->assertStringContainsString('You\'re browsing to path "/protected_resource".', $text);
107107
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy