]> Raphaƫl G. Git Repositories - packbundle/blobdiff - Tests/Controller/DefaultControllerTest.php
Add default unit test
[packbundle] / Tests / Controller / DefaultControllerTest.php
diff --git a/Tests/Controller/DefaultControllerTest.php b/Tests/Controller/DefaultControllerTest.php
new file mode 100644 (file)
index 0000000..505db3d
--- /dev/null
@@ -0,0 +1,17 @@
+<?php
+
+namespace Rapsys\PackBundle\Tests\Controller;
+
+use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
+
+class DefaultControllerTest extends WebTestCase
+{
+    public function testIndex()
+    {
+        $client = static::createClient();
+
+        $crawler = $client->request('GET', '/');
+
+        $this->assertContains('Hello World', $client->getResponse()->getContent());
+    }
+}