test nested Settings

This commit is contained in:
norb 2021-01-14 11:53:56 +01:00
commit f18ea38350
2 changed files with 18 additions and 1 deletions

View file

@ -73,6 +73,18 @@ class SettingsTest extends TestCase
$this->assertEquals('prod', $cfg->mode);
}
/**
* @depends testLoad
*/
public function testNestedSettings(Settings $cfg)
{
$nested = $cfg->nested;
$this->assertIsObject($nested);
$this->assertIsIterable($nested);
$this->assertEquals(1, $nested->level);
$this->assertEquals('default', $nested->testFiles);
}
/**
*/
public function testSiteOverride()