feat: #33454 Addition of a test to check the correct loading order

This commit is contained in:
Andreas Steiner 2024-07-29 18:32:11 +02:00
commit d57c247860

View file

@ -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()