diff options
Diffstat (limited to 'tests/lib/SetupTest.php')
-rw-r--r-- | tests/lib/SetupTest.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/lib/SetupTest.php b/tests/lib/SetupTest.php index acbce938a25..d0e38cf407f 100644 --- a/tests/lib/SetupTest.php +++ b/tests/lib/SetupTest.php @@ -9,14 +9,14 @@ namespace Test; use bantu\IniGetWrapper\IniGetWrapper; -use OCP\IConfig; +use OC\SystemConfig; use OCP\IL10N; use OCP\ILogger; use OCP\Security\ISecureRandom; class SetupTest extends \Test\TestCase { - /** @var IConfig | \PHPUnit_Framework_MockObject_MockObject */ + /** @var SystemConfig | \PHPUnit_Framework_MockObject_MockObject */ protected $config; /** @var \bantu\IniGetWrapper\IniGetWrapper | \PHPUnit_Framework_MockObject_MockObject */ private $iniWrapper; @@ -34,7 +34,7 @@ class SetupTest extends \Test\TestCase { protected function setUp() { parent::setUp(); - $this->config = $this->createMock(IConfig::class); + $this->config = $this->createMock(SystemConfig::class); $this->iniWrapper = $this->createMock(IniGetWrapper::class); $this->l10n = $this->createMock(IL10N::class); $this->defaults = $this->createMock(\OC_Defaults::class); @@ -49,7 +49,7 @@ class SetupTest extends \Test\TestCase { public function testGetSupportedDatabasesWithOneWorking() { $this->config ->expects($this->once()) - ->method('getSystemValue') + ->method('getValue') ->will($this->returnValue( array('sqlite', 'mysql', 'oci') )); @@ -72,7 +72,7 @@ class SetupTest extends \Test\TestCase { public function testGetSupportedDatabasesWithNoWorking() { $this->config ->expects($this->once()) - ->method('getSystemValue') + ->method('getValue') ->will($this->returnValue( array('sqlite', 'mysql', 'oci', 'pgsql') )); @@ -92,7 +92,7 @@ class SetupTest extends \Test\TestCase { public function testGetSupportedDatabasesWithAllWorking() { $this->config ->expects($this->once()) - ->method('getSystemValue') + ->method('getValue') ->will($this->returnValue( array('sqlite', 'mysql', 'pgsql', 'oci') )); @@ -121,7 +121,7 @@ class SetupTest extends \Test\TestCase { public function testGetSupportedDatabaseException() { $this->config ->expects($this->once()) - ->method('getSystemValue') + ->method('getValue') ->will($this->returnValue('NotAnArray')); $this->setupClass->getSupportedDatabases(); } |