[ Index ] |
PHP Cross Reference of DokuWiki |
[Summary view] [Print] [Text view]
1 <?php 2 3 namespace dokuwiki\test\conf; 4 5 class CascadeNormalTest extends \DokuWikiTest 6 { 7 8 public function setUp(): void 9 { 10 $this->pluginsEnabled = [ 11 'testing' 12 ]; 13 14 parent::setUp(); 15 } 16 17 public function testDefaults() 18 { 19 global $conf; 20 21 $this->assertEquals('start', $conf['start'], 'default value'); 22 $this->assertEquals('', $conf['tagline'], 'default value'); 23 24 $this->assertFalse(isset($conf['plugin']['testing']['schnibble']), 'not set before plugin call'); 25 26 $testing = plugin_load('action', 'testing'); 27 $this->assertEquals(0, $testing->getConf('schnibble'), 'default value'); 28 } 29 30 public function testLocal() 31 { 32 global $conf; 33 34 $this->assertEquals('My Test Wiki', $conf['title'], 'overriden in local.php (values from Config manager)'); 35 36 $testing = plugin_load('action', 'testing'); 37 $this->assertEquals('Local setting', $testing->getConf('second'), 'overriden in local.php'); 38 } 39 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body