diff --git a/tests/Controller/ConfigControllerTest.php b/tests/Controller/ConfigControllerTest.php index f41f25c13..7ee20c9ab 100644 --- a/tests/Controller/ConfigControllerTest.php +++ b/tests/Controller/ConfigControllerTest.php @@ -1130,7 +1130,7 @@ class ConfigControllerTest extends WallabagTestCase $this->assertSame(400, $client->getResponse()->getStatusCode()); $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text'])); - $this->assertStringContainsString('Bad CSRF token.', $body[0]); + $this->assertStringContainsString('400: Bad Request', $body[0]); } public function testChangeLocaleWithReferer() diff --git a/tests/Controller/EntryControllerTest.php b/tests/Controller/EntryControllerTest.php index c90b2acac..d4fd1d376 100644 --- a/tests/Controller/EntryControllerTest.php +++ b/tests/Controller/EntryControllerTest.php @@ -732,7 +732,7 @@ class EntryControllerTest extends WallabagTestCase $this->assertSame(400, $client->getResponse()->getStatusCode()); $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text'])); - $this->assertStringContainsString('Bad CSRF token.', $body[0]); + $this->assertStringContainsString('400: Bad Request', $body[0]); } /**