public function testChangePasswordWithError()
{
$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' => 'wrong_new']));
$this->Trait->Flash->expects($this->once())->method('error')->with('Password could not be changed');
$this->Trait->changePassword();
}