feat: #33454 Addition of a test to check the correct loading order
This commit is contained in:
parent
31735d8692
commit
d57c247860
1 changed files with 17 additions and 1 deletions
|
|
@ -130,6 +130,22 @@ class SettingsTest extends TestCase
|
||||||
$this->assertEquals(42, $cfg->answer);
|
$this->assertEquals(42, $cfg->answer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
public function testLoadingOrder()
|
||||||
|
{
|
||||||
|
$cfg = new Settings();
|
||||||
|
$cfg = $this->appPath($cfg, 'order')->site('site')->load();
|
||||||
|
|
||||||
|
$this->assertEquals('default', $cfg->testFiles);
|
||||||
|
$this->assertEquals('conf', $cfg->testFiles2);
|
||||||
|
$this->assertEquals('site', $cfg->testFile);
|
||||||
|
$this->assertEquals(42, $cfg->answer);
|
||||||
|
|
||||||
|
return $cfg;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
public function testTestingOverride()
|
public function testTestingOverride()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue