toby/tests/Feature/UserTest.php
EwelinaLasowy df0390134c #4 - wip
2022-01-17 11:02:09 +01:00

24 lines
414 B
PHP

<?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();
}
}