aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorJeremy Benoist <j0k3r@users.noreply.github.com>2016-08-17 15:17:07 +0200
committerGitHub <noreply@github.com>2016-08-17 15:17:07 +0200
commit782390a80effe3dbf7071de137e026067b116c93 (patch)
tree3fba287c252e664bf6383a906c9eee386e541b4f /tests
parent9a5c5c330efba45aff2290bc196ec00c3f2de3b9 (diff)
parent0cecfa25367742907d4833d0b9d0e23d8046913d (diff)
downloadwallabag-782390a80effe3dbf7071de137e026067b116c93.tar.gz
wallabag-782390a80effe3dbf7071de137e026067b116c93.tar.zst
wallabag-782390a80effe3dbf7071de137e026067b116c93.zip
Merge pull request #2095 from wallabag/fix-2auth-form
Fix form user display when 2FA is disabled
Diffstat (limited to 'tests')
-rw-r--r--tests/Wallabag/CoreBundle/Command/InstallCommandTest.php20
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',