CakeDC\Users\Test\TestCase\Model\Behavior\PasswordBehaviorTest::testChangePassword PHP Method

testChangePassword() public method

Test changePassword
public testChangePassword ( )
    public function testChangePassword()
    {
        $user = TableRegistry::get('CakeDC/Users.Users')->findByUsername('user-6')->first();
        $user->current_password = '12345';
        $user->password = 'new';
        $user->password_confirmation = 'new';
        $result = $this->Behavior->changePassword($user);
    }