Only check the "was updated/inserted" when not on Oracle...

This commit is contained in:
Joas Schilling 2015-09-14 15:27:06 +02:00
parent 0e805d5310
commit 2d0f0e898d
1 changed files with 8 additions and 2 deletions

View File

@ -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() {