summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/lib/appconfig.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/lib/appconfig.php b/tests/lib/appconfig.php
index 5ea446aee51..98420abe7bc 100644
--- a/tests/lib/appconfig.php
+++ b/tests/lib/appconfig.php
@@ -191,7 +191,10 @@ class AppConfig extends TestCase {
$this->assertEquals('1.2.3', $config->getValue('testapp', 'installed_version'));
$this->assertConfigKey('testapp', 'installed_version', '1.2.3');
- $this->assertFalse($config->setValue('testapp', 'installed_version', '1.2.3'));
+ $wasModified = $config->setValue('testapp', 'installed_version', '1.2.3');
+ if (!(\OC::$server->getDatabaseConnection() instanceof \OC\DB\OracleConnection)) {
+ $this->assertFalse($wasModified);
+ }
$this->assertEquals('1.2.3', $config->getValue('testapp', 'installed_version'));
$this->assertConfigKey('testapp', 'installed_version', '1.2.3');
@@ -218,7 +221,10 @@ class AppConfig extends TestCase {
$this->assertEquals('somevalue', $config->getValue('someapp', 'somekey'));
$this->assertConfigKey('someapp', 'somekey', 'somevalue');
- $this->assertFalse($config->setValue('someapp', 'somekey', 'somevalue'));
+ $wasInserted = $config->setValue('someapp', 'somekey', 'somevalue');
+ if (!(\OC::$server->getDatabaseConnection() instanceof \OC\DB\OracleConnection)) {
+ $this->assertFalse($wasInserted);
+ }
}
public function testDeleteKey() {