Mercurial > hg > dml-open-vis
annotate src/DML/MainVisBundle/Tests/Controller/DefaultControllerTest.php @ 0:493bcb69166c
added public content
author | Daniel Wolff |
---|---|
date | Tue, 09 Feb 2016 20:54:02 +0100 |
parents | |
children |
rev | line source |
---|---|
Daniel@0 | 1 <?php |
Daniel@0 | 2 |
Daniel@0 | 3 namespace DML\MainVisBundle\Tests\Controller; |
Daniel@0 | 4 |
Daniel@0 | 5 use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; |
Daniel@0 | 6 |
Daniel@0 | 7 class DefaultControllerTest extends WebTestCase |
Daniel@0 | 8 { |
Daniel@0 | 9 public function testIndex() |
Daniel@0 | 10 { |
Daniel@0 | 11 $client = static::createClient(); |
Daniel@0 | 12 |
Daniel@0 | 13 $crawler = $client->request('GET', '/hello/Fabien'); |
Daniel@0 | 14 |
Daniel@0 | 15 $this->assertTrue($crawler->filter('html:contains("Hello Fabien")')->count() > 0); |
Daniel@0 | 16 } |
Daniel@0 | 17 } |