From 1bb5dc7e69b464fb0152534068f82ebcb4e64bea Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 17 Jul 2025 20:40:01 +0100 Subject: [PATCH] Added one more test Signed-off-by: snipe --- tests/Feature/Users/Ui/UpdateUserTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/Feature/Users/Ui/UpdateUserTest.php b/tests/Feature/Users/Ui/UpdateUserTest.php index 2a82cde3ca..0c4578343a 100644 --- a/tests/Feature/Users/Ui/UpdateUserTest.php +++ b/tests/Feature/Users/Ui/UpdateUserTest.php @@ -11,6 +11,14 @@ use Illuminate\Support\Facades\Hash; class UpdateUserTest extends TestCase { + + public function testRequiresPermission() + { + $this->actingAs(User::factory()->create()) + ->get(route('users.edit', User::factory()->create()->id)) + ->assertForbidden(); + } + public function testPageRenders() { $this->actingAs(User::factory()->editUsers()->create())