Akar fasad belum ditetapkan Laravel
//Remove:
use PHPUnit\Framework\TestCase;
//And replace it with:
use Tests\TestCase;
Tiago F2
//Remove:
use PHPUnit\Framework\TestCase;
//And replace it with:
use Tests\TestCase;
## 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);
}
use Tests\TestCase;