This commit is contained in:
EwelinaLasowy 2022-01-17 11:02:09 +01:00
parent fc4669568c
commit df0390134c

View File

@ -0,0 +1,23 @@
<?php
declare(strict_types=1);
namespace Tests\Feature;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Tests\TestCase;
use Toby\Models\User;
class UserTest extends TestCase
{
use DatabaseMigrations;
public function testUserCanSeeUsersList(): void
{
$user = User::factory()->create();
$this->actingAs($user)
->get("/users")
->assertOk();
}
}