pluginsEnabled = [ 'testing' ]; $out = "oldSetting = $config_cascade['main']['default']; //add second file with defaults, which override the defaults of DokuWiki $config_cascade['main']['default'][] = $file; parent::setUp(); } public function testNewDefaults() { global $conf; $this->assertEquals('New default Tagline', $conf['tagline'], 'new default value'); $testing = plugin_load('action', 'testing'); $this->assertEquals(1, $testing->getConf('schnibble'), 'new default value'); $this->assertEquals('My Test Wiki', $conf['title'], 'local value still overrides default'); $this->assertEquals('Local setting', $testing->getConf('second'), 'local value still overrides default'); } public function tearDown(): void { global $config_cascade; $config_cascade['main']['default'] = $this->oldSetting; unlink(DOKU_CONF . 'otherdefaults.php'); parent::tearDown(); } }