public function testChangePasswordHappy()
{
$this->assertEquals('12345', $this->table->get('00000000-0000-0000-0000-000000000001')->password);
$this->_mockRequestPost();
$this->_mockAuthLoggedIn();
$this->_mockFlash();
$this->Trait->request->expects($this->once())->method('data')->will($this->returnValue(['password' => 'new', 'password_confirm' => 'new']));
$this->Trait->expects($this->once())->method('redirect')->with(['plugin' => 'CakeDC/Users', 'controller' => 'Users', 'action' => 'profile']);
$this->Trait->Flash->expects($this->any())->method('success')->with('Password has been changed successfully');
$this->Trait->changePassword();
$hasher = PasswordHasherFactory::build('Default');
$this->assertTrue($hasher->check('new', $this->table->get('00000000-0000-0000-0000-000000000001')->password));
}