From b49f57fafe2cfe962f199fb4ec748d747e180bff Mon Sep 17 00:00:00 2001 From: bastien ollier Date: Thu, 13 Jun 2024 09:01:37 +0200 Subject: [PATCH] update test --- tests/Controller/PostControllerTest.php | 4 ++-- tests/Controller/SpeciesControllerTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Controller/PostControllerTest.php b/tests/Controller/PostControllerTest.php index 7d50c53..556d7ce 100644 --- a/tests/Controller/PostControllerTest.php +++ b/tests/Controller/PostControllerTest.php @@ -40,10 +40,10 @@ class PostControllerTest extends WebTestCase public function testIndex(): void { - $crawler = $this->client->request('GET', '/posts'); + $crawler = $this->client->request('GET', '/'); self::assertResponseStatusCodeSame(200); - self::assertPageTitleContains('Post index'); + self::assertPageTitleContains('Posts'); // Use the $crawler to perform additional assertions e.g. // self::assertSame('Some text on the page', $crawler->filter('.p')->first()); diff --git a/tests/Controller/SpeciesControllerTest.php b/tests/Controller/SpeciesControllerTest.php index 5ce80dd..133e15c 100644 --- a/tests/Controller/SpeciesControllerTest.php +++ b/tests/Controller/SpeciesControllerTest.php @@ -42,7 +42,7 @@ class SpeciesControllerTest extends WebTestCase $crawler = $this->client->request('GET', $this->path); self::assertResponseStatusCodeSame(200); - self::assertPageTitleContains('Species index'); + self::assertPageTitleContains('Species'); // Use the $crawler to perform additional assertions e.g. // self::assertSame('Some text on the page', $crawler->filter('.p')->first());