mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX: Config state leaking between unit tests
This commit is contained in:
parent
3ee5b24898
commit
28be51cab0
@ -189,8 +189,7 @@ class ConfigTest extends SapphireTest {
|
|||||||
// But it won't affect subclasses - this is *uninherited* static
|
// But it won't affect subclasses - this is *uninherited* static
|
||||||
$this->assertNotContains('test_2b',
|
$this->assertNotContains('test_2b',
|
||||||
Config::inst()->get('ConfigStaticTest_Third', 'first', Config::UNINHERITED));
|
Config::inst()->get('ConfigStaticTest_Third', 'first', Config::UNINHERITED));
|
||||||
$this->assertNotContains('test_2b',
|
$this->assertNull(Config::inst()->get('ConfigStaticTest_Fourth', 'first', Config::UNINHERITED));
|
||||||
Config::inst()->get('ConfigStaticTest_Fourth', 'first', Config::UNINHERITED));
|
|
||||||
|
|
||||||
// Subclasses that don't have the static explicitly defined should allow definition, also
|
// Subclasses that don't have the static explicitly defined should allow definition, also
|
||||||
// This also checks that set can be called after the first uninherited get()
|
// This also checks that set can be called after the first uninherited get()
|
||||||
|
Loading…
Reference in New Issue
Block a user