a facade root has not been set laravel

88

a facade root has not been set laravel 7 -

## 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);
}

A facade root has not been set. -

use Tests\TestCase;

Comments

Submit
0 Comments