update test
This commit is contained in:
@@ -40,10 +40,10 @@ class PostControllerTest extends WebTestCase
|
|||||||
|
|
||||||
public function testIndex(): void
|
public function testIndex(): void
|
||||||
{
|
{
|
||||||
$crawler = $this->client->request('GET', '/posts');
|
$crawler = $this->client->request('GET', '/');
|
||||||
|
|
||||||
self::assertResponseStatusCodeSame(200);
|
self::assertResponseStatusCodeSame(200);
|
||||||
self::assertPageTitleContains('Post index');
|
self::assertPageTitleContains('Posts');
|
||||||
|
|
||||||
// Use the $crawler to perform additional assertions e.g.
|
// Use the $crawler to perform additional assertions e.g.
|
||||||
// self::assertSame('Some text on the page', $crawler->filter('.p')->first());
|
// self::assertSame('Some text on the page', $crawler->filter('.p')->first());
|
||||||
|
@@ -42,7 +42,7 @@ class SpeciesControllerTest extends WebTestCase
|
|||||||
$crawler = $this->client->request('GET', $this->path);
|
$crawler = $this->client->request('GET', $this->path);
|
||||||
|
|
||||||
self::assertResponseStatusCodeSame(200);
|
self::assertResponseStatusCodeSame(200);
|
||||||
self::assertPageTitleContains('Species index');
|
self::assertPageTitleContains('Species');
|
||||||
|
|
||||||
// Use the $crawler to perform additional assertions e.g.
|
// Use the $crawler to perform additional assertions e.g.
|
||||||
// self::assertSame('Some text on the page', $crawler->filter('.p')->first());
|
// self::assertSame('Some text on the page', $crawler->filter('.p')->first());
|
||||||
|
Reference in New Issue
Block a user