From a528ebeab0f7252badecdb4cbfa3130e696cc228 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Tue, 25 Apr 2023 11:53:47 -0700 Subject: [PATCH] Use superuser instead of admin state --- tests/Feature/Users/UpdateUserTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Feature/Users/UpdateUserTest.php b/tests/Feature/Users/UpdateUserTest.php index 7006cada62..9ddb323625 100644 --- a/tests/Feature/Users/UpdateUserTest.php +++ b/tests/Feature/Users/UpdateUserTest.php @@ -12,7 +12,7 @@ class UpdateUserTest extends TestCase public function testUsersCanBeActivated() { - $admin = User::factory()->admin()->create(); + $admin = User::factory()->superuser()->create(); $user = User::factory()->create(['activated' => false]); $this->actingAs($admin) @@ -27,7 +27,7 @@ class UpdateUserTest extends TestCase public function testUsersCanBeDeactivated() { - $admin = User::factory()->admin()->create(); + $admin = User::factory()->superuser()->create(); $user = User::factory()->create(['activated' => true]); $this->actingAs($admin) @@ -44,7 +44,7 @@ class UpdateUserTest extends TestCase public function testUsersUpdatingThemselvesDoNotDeactivateTheirAccount() { - $admin = User::factory()->admin()->create(['activated' => true]); + $admin = User::factory()->superuser()->create(['activated' => true]); $this->actingAs($admin) ->put(route('users.update', $admin), [