diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-03-17 16:37:48 -0600 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-03-19 15:53:49 -0600 |
commit | edd55b0ea9c13273695bf95d913f4dfc03e08c95 (patch) | |
tree | 71bcb99c0d2b5fd16d97eadcc947e11488c23817 /tests/lib/SetupTest.php | |
parent | c02527e41462133444881817b741f91ebf563b3b (diff) | |
download | nextcloud-server-edd55b0ea9c13273695bf95d913f4dfc03e08c95.tar.gz nextcloud-server-edd55b0ea9c13273695bf95d913f4dfc03e08c95.zip |
Use SystemConfig instead of AllConfig for DB stuff
* preparation for followup PRs to clean up the DB bootstrapping
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
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(); } |