- $configCopy['config']['CONFIG_FILE'] = 'tests/Updater/options.php';
- writeConfig($configCopy, true);
+ ConfigManager::$CONFIG_FILE = 'tests/Updater/options';
+ $invert = !$this->conf->get('privateLinkByDefault');
+ $this->conf->set('privateLinkByDefault', $invert);
+ $this->conf->write(true);
+
+ $optionsFile = 'tests/Updater/options.php';
+ $this->assertTrue(is_file($optionsFile));