Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit 6288bcd

Browse files
committed
Refactored the sample functional test
1 parent 2a25104 commit 6288bcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AppBundle/Tests/Controller/DefaultControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ public function testIndex()
1313
$crawler = $client->request('GET', '/');
1414

1515
$this->assertEquals(200, $client->getResponse()->getStatusCode());
16-
$this->assertContains('Welcome to Symfony', $client->getResponse()->getContent());
16+
$this->assertContains('Welcome to Symfony', $crawler->filter('#container h1')->text());
1717
}
1818
}

0 commit comments

Comments
 (0)