3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-24 12:25:54 +00:00
Files
snipe-it/tests/Feature/Users/Ui/CreateUserTest.php
snipe c1601b9a8c Updated tests
Signed-off-by: snipe <snipe@snipe.net>
2025-03-12 17:28:50 +00:00

21 lines
534 B
PHP

<?php
namespace Tests\Feature\Users\Ui;
use App\Models\User;
use Tests\TestCase;
class CreateUserTest extends TestCase
{
public function testPageRenders()
{
$admin = User::factory()->createUsers()->create();
$response = $this->actingAs(User::factory()->superuser()->create())
->get(route('users.create'))
->assertOk();
$response->assertDontSee($admin->first_name);
$response->assertDontSee($admin->last_name);
$response->assertDontSee($admin->email);
}
}