Mercurial > packages > framework
view src/Tests/TestCase.php @ 7:e6132a1e8e24 default tip
Adding better support for test among other base changes.
| author | Luka Sitas <sitas.luka.97@gmail.com> |
|---|---|
| date | Thu, 25 Sep 2025 19:58:32 -0400 |
| parents | |
| children |
line wrap: on
line source
<?php namespace Wizard\Framework\Tests; use App\Models\User; use Illuminate\Foundation\Testing\TestCase as BaseTestCase; use Illuminate\Foundation\Testing\RefreshDatabase; class TestCase extends BaseTestCase { use RefreshDatabase; protected function setUp(): void { parent::setUp(); // Set a default testing user $user = User::factory()->create(); $this->actingAs($user); } }
