aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-01-26 15:41:11 -0600
committerGitHub <noreply@github.com>2017-01-26 15:41:11 -0600
commite21170bd1a751454bc8f6c541d5733ca88d25961 (patch)
tree856e25f3196cf4636418eee713426eb76dcbd125 /tests/lib
parent43315e27f45cd67b84ed5c137cdd321838220ad3 (diff)
parent4536ead454a45be9316bb79b9c10967826017178 (diff)
downloadnextcloud-server-e21170bd1a751454bc8f6c541d5733ca88d25961.tar.gz
nextcloud-server-e21170bd1a751454bc8f6c541d5733ca88d25961.zip
Merge pull request #3246 from nextcloud/fix-sqlite-dependency
Remove useless dependency on SQLite (non-PDO)
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/SetupTest.php16
1 files changed, 2 insertions, 14 deletions
diff --git a/tests/lib/SetupTest.php b/tests/lib/SetupTest.php
index a8389eaaf56..acbce938a25 100644
--- a/tests/lib/SetupTest.php
+++ b/tests/lib/SetupTest.php
@@ -55,16 +55,12 @@ class SetupTest extends \Test\TestCase {
));
$this->setupClass
->expects($this->once())
- ->method('class_exists')
- ->will($this->returnValue(true));
- $this->setupClass
- ->expects($this->once())
->method('is_callable')
->will($this->returnValue(false));
$this->setupClass
->expects($this->any())
->method('getAvailableDbDriversForPdo')
- ->will($this->returnValue([]));
+ ->will($this->returnValue(['sqlite']));
$result = $this->setupClass->getSupportedDatabases();
$expectedResult = array(
'sqlite' => 'SQLite'
@@ -82,10 +78,6 @@ class SetupTest extends \Test\TestCase {
));
$this->setupClass
->expects($this->any())
- ->method('class_exists')
- ->will($this->returnValue(false));
- $this->setupClass
- ->expects($this->any())
->method('is_callable')
->will($this->returnValue(false));
$this->setupClass
@@ -106,16 +98,12 @@ class SetupTest extends \Test\TestCase {
));
$this->setupClass
->expects($this->any())
- ->method('class_exists')
- ->will($this->returnValue(true));
- $this->setupClass
- ->expects($this->any())
->method('is_callable')
->will($this->returnValue(true));
$this->setupClass
->expects($this->any())
->method('getAvailableDbDriversForPdo')
- ->will($this->returnValue(['mysql', 'pgsql']));
+ ->will($this->returnValue(['sqlite', 'mysql', 'pgsql']));
$result = $this->setupClass->getSupportedDatabases();
$expectedResult = array(
'sqlite' => 'SQLite',