Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

Commit

Permalink
Ref #49: Add functionnal test for DefaultController
Browse files Browse the repository at this point in the history
  • Loading branch information
hundrex committed Mar 8, 2018
1 parent 31c7623 commit 20ff47c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/AppBundle/Controller/DefaultControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ public function testIndex()

$crawler = $client->request('GET', '/');

$this->assertEquals(200, $client->getResponse()->getStatusCode());
$this->assertContains('Welcome to Symfony', $crawler->filter('#container h1')->text());
$this->assertEquals(200, $client->getResponse()->getStatusCode(), 'The main page should load.');
}
}

0 comments on commit 20ff47c

Please sign in to comment.