public function testRoutingFavoriteDelete()
{
$this->logIn();
$client = $this->client;
// before
$TestFavorite = $this->newTestFavorite();
$this->app['orm.em']->persist($TestFavorite);
$this->app['orm.em']->flush();
// main
$redirectUrl = $this->app->url('mypage_favorite');
$client->request('DELETE', $this->app->url('mypage_favorite_delete', array('id' => $TestFavorite->getId())));
$this->assertTrue($client->getResponse()->isRedirect($redirectUrl));
// after
$this->app['orm.em']->remove($TestFavorite);
$this->app['orm.em']->flush();
$hookpoins = array(EccubeEvents::FRONT_MYPAGE_MYPAGE_DELETE_INITIALIZE, EccubeEvents::FRONT_MYPAGE_MYPAGE_DELETE_COMPLETE);
$this->verifyOutputString($hookpoins);
}