X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/e7a7d8cc1d77b032c4efe9d08ec6c749430b7b57..refs/pull/3083/head:/tests/Commands/AddAdminCommandTest.php diff --git a/tests/Commands/AddAdminCommandTest.php b/tests/Commands/AddAdminCommandTest.php index 6b03c86f9..0f144246c 100644 --- a/tests/Commands/AddAdminCommandTest.php +++ b/tests/Commands/AddAdminCommandTest.php @@ -1,4 +1,6 @@ - 'admintest@example.com', - '--name' => 'Admin Test', + '--email' => 'admintest@example.com', + '--name' => 'Admin Test', '--password' => 'testing-4', ]); $this->assertTrue($exitCode === 0, 'Command executed successfully'); $this->assertDatabaseHas('users', [ 'email' => 'admintest@example.com', - 'name' => 'Admin Test' + 'name' => 'Admin Test', ]); $this->assertTrue(User::query()->where('email', '=', 'admintest@example.com')->first()->hasSystemRole('admin'), 'User has admin role as expected'); $this->assertTrue(\Auth::attempt(['email' => 'admintest@example.com', 'password' => 'testing-4']), 'Password stored as expected'); } -} \ No newline at end of file +}