mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-27 14:39:49 -08:00
060b17df01
Signed-off-by: snipe <snipe@snipe.net>
24 lines
474 B
PHP
24 lines
474 B
PHP
<?php
|
|
|
|
namespace Tests\Feature\Users\Api;
|
|
|
|
use App\Models\Company;
|
|
use App\Models\User;
|
|
use Illuminate\Testing\Fluent\AssertableJson;
|
|
use Laravel\Passport\Passport;
|
|
use Tests\TestCase;
|
|
|
|
class ViewUserTest extends TestCase
|
|
{
|
|
|
|
public function testCanReturnUser()
|
|
{
|
|
$user = User::factory()->create();
|
|
|
|
$this->actingAsForApi(User::factory()->viewUsers()->create())
|
|
->getJson(route('api.users.show', $user))
|
|
->assertOk();
|
|
}
|
|
|
|
}
|