aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoeland Douma <rullzer@users.noreply.github.com>2016-07-15 21:30:51 +0200
committerGitHub <noreply@github.com>2016-07-15 21:30:51 +0200
commit6f9236fb3b08ee370c215b448c169372a518e326 (patch)
treeff51c3baf17a04ef44256748d6d5591622355597 /tests
parentf8167c0f9a9869a32398702ed03db46101f2cc4b (diff)
parentb288c6796aedce787493d24f67d1f39c67e3764d (diff)
downloadnextcloud-server-6f9236fb3b08ee370c215b448c169372a518e326.tar.gz
nextcloud-server-6f9236fb3b08ee370c215b448c169372a518e326.zip
Merge pull request #381 from nextcloud/postgres-setup
use pdo for postgres setup
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/SetupTest.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/lib/SetupTest.php b/tests/lib/SetupTest.php
index e2723efd76a..c6e219f4029 100644
--- a/tests/lib/SetupTest.php
+++ b/tests/lib/SetupTest.php
@@ -57,7 +57,7 @@ class SetupTest extends \Test\TestCase {
->method('is_callable')
->will($this->returnValue(false));
$this->setupClass
- ->expects($this->once())
+ ->expects($this->any())
->method('getAvailableDbDriversForPdo')
->will($this->returnValue([]));
$result = $this->setupClass->getSupportedDatabases();
@@ -76,15 +76,15 @@ class SetupTest extends \Test\TestCase {
array('sqlite', 'mysql', 'oci', 'pgsql')
));
$this->setupClass
- ->expects($this->once())
+ ->expects($this->any())
->method('class_exists')
->will($this->returnValue(false));
$this->setupClass
- ->expects($this->exactly(2))
+ ->expects($this->any())
->method('is_callable')
->will($this->returnValue(false));
$this->setupClass
- ->expects($this->once())
+ ->expects($this->any())
->method('getAvailableDbDriversForPdo')
->will($this->returnValue([]));
$result = $this->setupClass->getSupportedDatabases();
@@ -100,17 +100,17 @@ class SetupTest extends \Test\TestCase {
array('sqlite', 'mysql', 'pgsql', 'oci')
));
$this->setupClass
- ->expects($this->once())
+ ->expects($this->any())
->method('class_exists')
->will($this->returnValue(true));
$this->setupClass
- ->expects($this->exactly(2))
+ ->expects($this->any())
->method('is_callable')
->will($this->returnValue(true));
$this->setupClass
- ->expects($this->once())
+ ->expects($this->any())
->method('getAvailableDbDriversForPdo')
- ->will($this->returnValue(['mysql']));
+ ->will($this->returnValue(['mysql', 'pgsql']));
$result = $this->setupClass->getSupportedDatabases();
$expectedResult = array(
'sqlite' => 'SQLite',