public function testSettingConfigParallel() { $appConfig1 = new \OC\AppConfig(\OC::$server->getDatabaseConnection()); $appConfig2 = new \OC\AppConfig(\OC::$server->getDatabaseConnection()); $appConfig1->getValue('testapp', 'foo', 'v1'); $appConfig2->getValue('testapp', 'foo', 'v1'); $appConfig1->setValue('testapp', 'foo', 'v1'); $this->assertConfigKey('testapp', 'foo', 'v1'); $appConfig2->setValue('testapp', 'foo', 'v2'); $this->assertConfigKey('testapp', 'foo', 'v2'); }