diff --git a/tests/Cms/Users/UserActionsTest.php b/tests/Cms/Users/UserActionsTest.php index c4bae08f4d..d932861c19 100644 --- a/tests/Cms/Users/UserActionsTest.php +++ b/tests/Cms/Users/UserActionsTest.php @@ -83,7 +83,20 @@ public function testChangeRole() $this->assertEquals('editor', $user->role()); } - public function testCreate() + public function testCreateAdmin() + { + $user = User::create([ + 'email' => 'new@domain.com', + 'role' => 'admin', + ]); + + $this->assertTrue($user->exists()); + + $this->assertEquals('new@domain.com', $user->email()); + $this->assertEquals('admin', $user->role()); + } + + public function testCreateEditor() { $user = User::create([ 'email' => 'new@domain.com',