CakeDC\Users\Test\TestCase\Shell\UsersShellTest::testResetPassword PHP Method

testResetPassword() public method

Reset password
public testResetPassword ( ) : void
return void
    public function testResetPassword()
    {
        $user = $this->Users->newEntity();
        $user->username = 'user-1';
        $user->password = 'password';
        $this->Shell->expects($this->once())->method('_updateUser')->will($this->returnValue($user));
        $this->Shell->runCommand(['resetPassword', 'user-1', 'password']);
    }