aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/CoreBundle/Command
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-09-03 13:34:13 +0200
committerGitHub <noreply@github.com>2016-09-03 13:34:13 +0200
commit2b9c5097d438c5493e5c47c7084fc01d1eb19686 (patch)
treecf83462799bcdf542b4debc0ff51736c43711ad3 /tests/Wallabag/CoreBundle/Command
parent985f5f9d05f7ff7e443442b1775923b379c141d6 (diff)
parent5070644a12ad264444a812b783a04386d6581cb0 (diff)
downloadwallabag-2b9c5097d438c5493e5c47c7084fc01d1eb19686.tar.gz
wallabag-2b9c5097d438c5493e5c47c7084fc01d1eb19686.tar.zst
wallabag-2b9c5097d438c5493e5c47c7084fc01d1eb19686.zip
Merge pull request #2262 from wallabag/install-check-db-connection
Add a check for the database connection
Diffstat (limited to 'tests/Wallabag/CoreBundle/Command')
-rw-r--r--tests/Wallabag/CoreBundle/Command/InstallCommandTest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/Wallabag/CoreBundle/Command/InstallCommandTest.php b/tests/Wallabag/CoreBundle/Command/InstallCommandTest.php
index 089a1c5f..83f5bf24 100644
--- a/tests/Wallabag/CoreBundle/Command/InstallCommandTest.php
+++ b/tests/Wallabag/CoreBundle/Command/InstallCommandTest.php
@@ -127,6 +127,12 @@ class InstallCommandTest extends WallabagCoreTestCase
127 127
128 public function testRunInstallCommandWithDatabaseRemoved() 128 public function testRunInstallCommandWithDatabaseRemoved()
129 { 129 {
130 // skipped SQLite check when database is removed because while testing for the connection,
131 // the driver will create the file (so the database) before testing if database exist
132 if ($this->getClient()->getContainer()->get('doctrine')->getConnection()->getDriver() instanceof \Doctrine\DBAL\Driver\PDOSqlite\Driver) {
133 $this->markTestSkipped('SQLite spotted: can\'t test with database removed.');
134 }
135
130 $application = new Application($this->getClient()->getKernel()); 136 $application = new Application($this->getClient()->getKernel());
131 $application->add(new DropDatabaseDoctrineCommand()); 137 $application->add(new DropDatabaseDoctrineCommand());
132 138