UsersTest::testResetPassword PHP Method

testResetPassword() public method

public testResetPassword ( )
    public function testResetPassword()
    {
        $password = 'odjwyufkglte';
        $this->visit('admin/auth/users/' . $this->user->id . '/edit')->see('Create')->submitForm('Submit', ['password' => $password])->seePageIs('admin/auth/users')->visit('admin/auth/logout')->dontSeeIsAuthenticated('admin')->seePageIs('admin/auth/login')->submitForm('Login', ['username' => $this->user->username, 'password' => $password])->see('dashboard')->seeIsAuthenticated('admin')->seePageIs('admin');
    }