public function testCreateUser()
{
$user = ['username' => 'Test', 'name' => 'Name', 'password' => '123456'];
$this->visit('admin/auth/users/create')->see('Create')->submitForm('Submit', $user)->seePageIs('admin/auth/users')->seeInDatabase(config('admin.database.users_table'), ['username' => 'Test']);
$this->visit('admin/auth/logout')->dontSeeIsAuthenticated('admin')->seePageIs('admin/auth/login')->submitForm('Login', ['username' => $user['username'], 'password' => $user['password']])->see('dashboard')->seeIsAuthenticated('admin')->seePageIs('admin');
}