]> Raphaël G. Git Repositories - packbundle/commitdiff
Add default unit test
authorRaphaël Gertz <git@rapsys.eu>
Sun, 25 Feb 2018 05:00:14 +0000 (06:00 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Sun, 25 Feb 2018 05:00:14 +0000 (06:00 +0100)
Tests/Controller/DefaultControllerTest.php [new file with mode: 0644]

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());
+    }
+}