From: Jeremy Date: Sat, 31 Jan 2015 08:15:51 +0000 (+0100) Subject: Tests are working again X-Git-Tag: 2.0.0-alpha.0~113^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=aa6e27cf4fbbb4713b1cdc933c4719ae9da78c71;p=github%2Fwallabag%2Fwallabag.git Tests are working again --- diff --git a/.travis.yml b/.travis.yml index 2971c5b9..1d90a748 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,18 @@ language: php + php: + - 5.4 - 5.5 + - 5.6 + branches: only: - - refactor \ No newline at end of file + - refactor + +before_script: + - composer self-update + - echo 'date.timezone = "Europe/Paris"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini + +script: + - ant -f app/build.xml prepare + - phpunit -c app --coverage-text diff --git a/app/build.xml b/app/build.xml new file mode 100644 index 00000000..16ef73ed --- /dev/null +++ b/app/build.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/phpunit.xml.dist b/app/phpunit.xml.dist index 0be14ca9..6593a2f0 100644 --- a/app/phpunit.xml.dist +++ b/app/phpunit.xml.dist @@ -1,12 +1,17 @@ - - + > + ../src/Wallabag/CoreBundle/Tests diff --git a/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php b/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php index af20f31f..786ff811 100644 --- a/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php +++ b/src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php @@ -10,9 +10,8 @@ class EntryControllerTest extends WebTestCase { $client = static::createClient(); - $crawler = $client->request('GET', '/app/index'); + $crawler = $client->request('GET', '/new'); $this->assertEquals(200, $client->getResponse()->getStatusCode()); - $this->assertTrue($crawler->filter('html:contains("Homepage")')->count() > 0); } }