1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<?php namespace Tests\Feature; use App\Models\Auth\User; use Tests\TestCase; class ExampleTest extends TestCase { /** * A basic test example. * * @return void */ public function testBasicTest() { $response = $this ->actingAs(User::first()) ->get('/'); $response->assertStatus(200); } }