public function testGetActiveCustomerByResetKeyWithException()
{
$expire = '-' . $this->app['config']['customer_reset_expire'] . ' min';
$reset_key = $this->app['eccube.repository.customer']->getResetPassword();
$this->Customer->setResetKey($reset_key)->setResetExpire(new \DateTime($expire));
$this->app['orm.em']->flush();
try {
$Customer = $this->app['eccube.repository.customer']->getActiveCustomerByResetKey($reset_key);
$this->fail();
} catch (\Doctrine\ORM\NoResultException $e) {
$this->expected = 'No result was found for query although at least one row was expected.';
$this->actual = $e->getMessage();
}
$this->verify();
}