#4 - wip
This commit is contained in:
parent
fc4669568c
commit
df0390134c
23
tests/Feature/UserTest.php
Normal file
23
tests/Feature/UserTest.php
Normal 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();
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user