From a7a7440e10d9d5859a01d2035ef258663b59e64b Mon Sep 17 00:00:00 2001 From: WouterJ Date: Thu, 4 Feb 2016 20:52:05 +0100 Subject: [PATCH] Debug... --- .travis.yml | 1 - .../DemoBundle/Tests/Functional/StaticPageTest.php | 2 +- src/AppBundle/Controller/DefaultController.php | 10 ++++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 src/AppBundle/Controller/DefaultController.php diff --git a/.travis.yml b/.travis.yml index 331b4794d5..b5fae90b87 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,7 +28,6 @@ install: if [ "$COMPOSER_CMD" = "install" ]; then composer install --prefer-dist before_script: - app/console doctrine:phpcr:init:dbal --force -e=test - - app/console doctrine:phpcr:workspace:create standard_test -e=test - app/console doctrine:phpcr:repository:init -e=test script: phpunit -c app diff --git a/src/Acme/DemoBundle/Tests/Functional/StaticPageTest.php b/src/Acme/DemoBundle/Tests/Functional/StaticPageTest.php index 7664a0876b..6683fc8e37 100644 --- a/src/Acme/DemoBundle/Tests/Functional/StaticPageTest.php +++ b/src/Acme/DemoBundle/Tests/Functional/StaticPageTest.php @@ -11,7 +11,7 @@ public function testHomePage() $client = $this->createClient(); $crawler = $client->request('GET', '/'); - $this->assertEquals(200, $client->getResponse()->getStatusCode()); + $this->assertEquals(200, $client->getResponse()->getStatusCode(), $crawler->html()); $title = 'Welcome!'; $this->assertCount(1, $crawler->filter(sprintf('h1:contains("%s")', $title)), 'Page does not contain an h1 tag with: '.$title); diff --git a/src/AppBundle/Controller/DefaultController.php b/src/AppBundle/Controller/DefaultController.php new file mode 100644 index 0000000000..a37c53a819 --- /dev/null +++ b/src/AppBundle/Controller/DefaultController.php @@ -0,0 +1,10 @@ +