Skip to content
Permalink
Browse files

Test user creation with admin role

  • Loading branch information...
bastianallgeier committed Jul 10, 2019
1 parent 13f6dca commit 644fd2b8f7c132562ebbe939ffaf4e0ca768c72c
Showing with 14 additions and 1 deletion.
  1. +14 −1 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',

0 comments on commit 644fd2b

Please sign in to comment.
You can’t perform that action at this time.