From 862addacd51402cf99e3cb40caa94f9eade3031f Mon Sep 17 00:00:00 2001 From: Andreas Steiner Date: Mon, 29 Jul 2024 18:32:11 +0200 Subject: [PATCH] feat: #33454 Addition of a test to check the correct loading order --- tests/SettingsTest.php | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/tests/SettingsTest.php b/tests/SettingsTest.php index dd78e34..3ca1403 100644 --- a/tests/SettingsTest.php +++ b/tests/SettingsTest.php @@ -129,7 +129,23 @@ class SettingsTest extends TestCase $this->assertEquals('site', $cfg->testFile); $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()