mirror of
https://github.com/snipe/snipe-it.git
synced 2026-04-05 15:28:30 +00:00
19 lines
374 B
PHP
19 lines
374 B
PHP
<?php
|
|
|
|
namespace Tests\Feature\Users\Api;
|
|
|
|
use App\Models\User;
|
|
use Tests\TestCase;
|
|
|
|
class ViewUserTest extends TestCase
|
|
{
|
|
public function test_can_return_user()
|
|
{
|
|
$user = User::factory()->create();
|
|
|
|
$this->actingAsForApi(User::factory()->viewUsers()->create())
|
|
->getJson(route('api.users.show', $user))
|
|
->assertOk();
|
|
}
|
|
}
|