diff options
Diffstat (limited to 'tests/Wallabag')
-rw-r--r-- | tests/Wallabag/CoreBundle/Command/InstallCommandTest.php | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/tests/Wallabag/CoreBundle/Command/InstallCommandTest.php b/tests/Wallabag/CoreBundle/Command/InstallCommandTest.php index 6c6ce087..089a1c5f 100644 --- a/tests/Wallabag/CoreBundle/Command/InstallCommandTest.php +++ b/tests/Wallabag/CoreBundle/Command/InstallCommandTest.php | |||
@@ -28,16 +28,32 @@ class InstallCommandTest extends WallabagCoreTestCase | |||
28 | * | 28 | * |
29 | * http://stackoverflow.com/a/14374832/569101 | 29 | * http://stackoverflow.com/a/14374832/569101 |
30 | */ | 30 | */ |
31 | $this->markTestSkipped('PostgreSQL spotted: can find a good way to drop current database, skipping.'); | 31 | $this->markTestSkipped('PostgreSQL spotted: can\'t find a good way to drop current database, skipping.'); |
32 | } | 32 | } |
33 | } | 33 | } |
34 | 34 | ||
35 | /** | ||
36 | * Ensure next tests will have a clean database | ||
37 | */ | ||
35 | public static function tearDownAfterClass() | 38 | public static function tearDownAfterClass() |
36 | { | 39 | { |
37 | $application = new Application(static::$kernel); | 40 | $application = new Application(static::$kernel); |
38 | $application->setAutoExit(false); | 41 | $application->setAutoExit(false); |
39 | 42 | ||
40 | $code = $application->run(new ArrayInput([ | 43 | $application->run(new ArrayInput([ |
44 | 'command' => 'doctrine:schema:drop', | ||
45 | '--no-interaction' => true, | ||
46 | '--force' => true, | ||
47 | '--env' => 'test', | ||
48 | ]), new NullOutput()); | ||
49 | |||
50 | $application->run(new ArrayInput([ | ||
51 | 'command' => 'doctrine:schema:create', | ||
52 | '--no-interaction' => true, | ||
53 | '--env' => 'test', | ||
54 | ]), new NullOutput()); | ||
55 | |||
56 | $application->run(new ArrayInput([ | ||
41 | 'command' => 'doctrine:fixtures:load', | 57 | 'command' => 'doctrine:fixtures:load', |
42 | '--no-interaction' => true, | 58 | '--no-interaction' => true, |
43 | '--env' => 'test', | 59 | '--env' => 'test', |