]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix test 381/head
authorRobin Appelman <icewind@owncloud.com>
Wed, 13 Jul 2016 10:23:44 +0000 (12:23 +0200)
committerRobin Appelman <icewind@owncloud.com>
Wed, 13 Jul 2016 12:33:04 +0000 (14:33 +0200)
tests/lib/SetupTest.php

index e2723efd76afaebc2042025577ea16e989f4d93b..c6e219f4029fb867b277795b12c8336e381878cc 100644 (file)
@@ -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',