From f0fbb3cf364e1a6744cd68daf169fbe97f49acd0 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 18 Jul 2025 16:31:31 +0100 Subject: [PATCH] Uncomment permissions test Signed-off-by: snipe --- tests/Feature/Users/Api/UpdateUserTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Feature/Users/Api/UpdateUserTest.php b/tests/Feature/Users/Api/UpdateUserTest.php index a581256dbf..362568b18c 100644 --- a/tests/Feature/Users/Api/UpdateUserTest.php +++ b/tests/Feature/Users/Api/UpdateUserTest.php @@ -109,7 +109,7 @@ class UpdateUserTest extends TestCase 'password' => 'super-secret', 'password_confirmation' => 'super-secret', 'email' => 'mabel@onlymurderspod.com', - //'permissions' => '{"a.new.permission":"1"}', + 'permissions' => '{"a.new.permission":"1"}', 'activated' => true, 'phone' => '619-555-5555', 'jobtitle' => 'Host', @@ -136,7 +136,7 @@ class UpdateUserTest extends TestCase $this->assertEquals('mabel', $user->username, 'Username was not updated'); $this->assertTrue(Hash::check('super-secret', $user->password), 'Password was not updated'); $this->assertEquals('mabel@onlymurderspod.com', $user->email, 'Email was not updated'); - //$this->assertArrayHasKey('a.new.permission', $user->decodePermissions(), 'Permissions were not updated'); + $this->assertArrayHasKey('a.new.permission', $user->decodePermissions(), 'Permissions were not updated'); $this->assertTrue((bool) $user->activated, 'User not marked as activated'); $this->assertEquals('619-555-5555', $user->phone, 'Phone was not updated'); $this->assertEquals('Host', $user->jobtitle, 'Job title was not updated');