diff options
| author | marwolaethblack <a.unal677@gmail.com> | 2017-11-22 12:37:48 +0100 | 
|---|---|---|
| committer | marwolaethblack <a.unal677@gmail.com> | 2017-11-22 12:37:48 +0100 | 
| commit | 4312b353dbb4b448d551975b63db9c95b3eef4f5 (patch) | |
| tree | 90c991bc462526725593f82e56b288cfce2c7e03 /tests | |
initial commit
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/AppBundle/Controller/DefaultControllerTest.php | 18 | 
1 files changed, 18 insertions, 0 deletions
| diff --git a/tests/AppBundle/Controller/DefaultControllerTest.php b/tests/AppBundle/Controller/DefaultControllerTest.php new file mode 100644 index 0000000..594803c --- /dev/null +++ b/tests/AppBundle/Controller/DefaultControllerTest.php @@ -0,0 +1,18 @@ +<?php + +namespace Tests\AppBundle\Controller; + +use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; + +class DefaultControllerTest extends WebTestCase +{ +    public function testIndex() +    { +        $client = static::createClient(); + +        $crawler = $client->request('GET', '/'); + +        $this->assertEquals(200, $client->getResponse()->getStatusCode()); +        $this->assertContains('Welcome to Symfony', $crawler->filter('#container h1')->text()); +    } +} |