summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-09-14 15:27:06 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-09-14 15:27:06 +0200
commit2d0f0e898dfe36d1c2d4919b772a0c886317274b (patch)
tree5c8520b6ffd7c76aecd7096501ab668f69a90bf3 /tests
parent0e805d53105397aa8edbe4aab53eddc6af359275 (diff)
downloadnextcloud-server-2d0f0e898dfe36d1c2d4919b772a0c886317274b.tar.gz
nextcloud-server-2d0f0e898dfe36d1c2d4919b772a0c886317274b.zip
Only check the "was updated/inserted" when not on Oracle...
Diffstat (limited to 'tests')
-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() {