summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-01-24 16:14:20 -0600
committerMorris Jobke <hey@morrisjobke.de>2017-01-25 22:23:05 -0600
commit4536ead454a45be9316bb79b9c10967826017178 (patch)
treec061b6c41db3bb7eafcead39c959b234490ba489 /tests
parente09bba5e366d14223c1326ac4a08cf3e5904612a (diff)
downloadnextcloud-server-4536ead454a45be9316bb79b9c10967826017178.tar.gz
nextcloud-server-4536ead454a45be9316bb79b9c10967826017178.zip
Remove useless dependency on SQLite (non-PDO)
* we only require the PDO driver * fixes #481 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests')
-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',