diff options
author | Jeremy <jeremy.benoist@gmail.com> | 2015-02-07 18:30:46 +0100 |
---|---|---|
committer | Jeremy <jeremy.benoist@gmail.com> | 2015-02-07 18:30:46 +0100 |
commit | 9c0c88200635a979b9abdcba922e1d3904790636 (patch) | |
tree | 8d517780d2a82d68ebd06aea2da2fc4c7c67b5bb /app | |
parent | 94f2364cd82a7390fbeddcdc02a58222bd60fbf3 (diff) | |
download | wallabag-9c0c88200635a979b9abdcba922e1d3904790636.tar.gz wallabag-9c0c88200635a979b9abdcba922e1d3904790636.tar.zst wallabag-9c0c88200635a979b9abdcba922e1d3904790636.zip |
Add some tests on EntryController
Also, create database schema on test initialisation
Diffstat (limited to 'app')
-rw-r--r-- | app/build.xml | 5 | ||||
-rw-r--r-- | app/phpunit.xml.dist | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/app/build.xml b/app/build.xml index 700a31b5..6427867c 100644 --- a/app/build.xml +++ b/app/build.xml | |||
@@ -26,6 +26,11 @@ | |||
26 | </exec> | 26 | </exec> |
27 | <exec executable="php"> | 27 | <exec executable="php"> |
28 | <arg value="${basedir}/../app/console"/> | 28 | <arg value="${basedir}/../app/console"/> |
29 | <arg value="doctrine:schema:create"/> | ||
30 | <arg value="--env=test"/> | ||
31 | </exec> | ||
32 | <exec executable="php"> | ||
33 | <arg value="${basedir}/../app/console"/> | ||
29 | <arg value="cache:clear"/> | 34 | <arg value="cache:clear"/> |
30 | <arg value="--env=test"/> | 35 | <arg value="--env=test"/> |
31 | </exec> | 36 | </exec> |
diff --git a/app/phpunit.xml.dist b/app/phpunit.xml.dist index 6593a2f0..b8f38ff8 100644 --- a/app/phpunit.xml.dist +++ b/app/phpunit.xml.dist | |||
@@ -23,8 +23,9 @@ | |||
23 | <directory>../src</directory> | 23 | <directory>../src</directory> |
24 | <exclude> | 24 | <exclude> |
25 | <directory>../vendor</directory> | 25 | <directory>../vendor</directory> |
26 | <directory>../src/Acme</directory> | 26 | <directory>../src/Wallabag/CoreBundle/Resources</directory> |
27 | <directory>../src/AppBundle</directory> | 27 | <directory>../src/Wallabag/CoreBundle/Tests</directory> |
28 | <directory>../src/Wallabag/CoreBundle/DataFixtures</directory> | ||
28 | </exclude> | 29 | </exclude> |
29 | </whitelist> | 30 | </whitelist> |
30 | </filter> | 31 | </filter> |