📜  尚未设置外观根. - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:44.529000             🧑  作者: Mango

代码示例3
## Do not forget to call parent::setUp(); before.

//fails

public function setUp(): void
{
    Config::set('something', true);
}

//works !!!!

public function setUp(): void
{
    parent::setUp();

    Config::set('something', true);
}