Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-04-22 13:20:21 +0300
committerCarl Schwan <carl@carlschwan.eu>2022-04-22 17:03:29 +0300
commit8bbdd9ea0ce9678720459037e30239dc176b9ed8 (patch)
tree58946cd2ee2920f02ba957b3b864ad87e471cd11 /tests/lib/AllConfigTest.php
parent3f55108227287f780623115662edfcfa28a5f745 (diff)
Cleanup AllConfigcleanup/allconfig-sql
- Port to QueryBuilder - More typing when possible - Import classes with 'use' Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'tests/lib/AllConfigTest.php')
-rw-r--r--tests/lib/AllConfigTest.php9
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');