diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-04-25 18:56:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-25 18:56:15 +0200 |
commit | 59e040269124c18b5effa8bafafccb0856658b5c (patch) | |
tree | 58a67fb56b3d7b104448c48610ee8ca8e553b2dc /tests | |
parent | 407fb8c22bb286c4e84e2e9ec5f178bc4bc52013 (diff) | |
parent | 8bbdd9ea0ce9678720459037e30239dc176b9ed8 (diff) | |
download | nextcloud-server-59e040269124c18b5effa8bafafccb0856658b5c.tar.gz nextcloud-server-59e040269124c18b5effa8bafafccb0856658b5c.zip |
Merge pull request #32069 from nextcloud/cleanup/allconfig-sql
Cleanup AllConfig
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/AllConfigTest.php | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/lib/AllConfigTest.php b/tests/lib/AllConfigTest.php index b0b0b7eff8b..8570b94456f 100644 --- a/tests/lib/AllConfigTest.php +++ b/tests/lib/AllConfigTest.php @@ -409,11 +409,6 @@ class AllConfigTest extends \Test\TestCase { $systemConfig = $this->getMockBuilder('\OC\SystemConfig') ->disableOriginalConstructor() ->getMock(); - $systemConfig->expects($this->once()) - ->method('getValue') - ->with($this->equalTo('dbtype'), - $this->equalTo('sqlite')) - ->willReturn(\OC::$server->getConfig()->getSystemValue('dbtype', 'sqlite')); $config = $this->getConfig($systemConfig); // preparation - add something to the database @@ -443,10 +438,6 @@ class AllConfigTest extends \Test\TestCase { public function testGetUsersForUserValueCaseInsensitive() { // mock the check for the database to run the correct SQL statements for each database type $systemConfig = $this->createMock(SystemConfig::class); - $systemConfig->expects($this->once()) - ->method('getValue') - ->with($this->equalTo('dbtype'), $this->equalTo('sqlite')) - ->willReturn(\OC::$server->getConfig()->getSystemValue('dbtype', 'sqlite')); $config = $this->getConfig($systemConfig); $config->setUserValue('user1', 'myApp', 'myKey', 'test123'); |