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())