public function testRoutingAdminProductCategoryDelete()
{
// before
$TestCreator = $this->app['orm.em']->getRepository('\\Eccube\\Entity\\Member')->find(1);
$TestCategory = $this->newTestCategory($TestCreator);
$this->app['orm.em']->persist($TestCategory);
$this->app['orm.em']->flush();
$test_category_id = $this->app['eccube.repository.category']->findOneBy(array('name' => $TestCategory->getName()))->getId();
// main
$redirectUrl = $this->app->url('admin_product_category');
$this->client->request('DELETE', $this->app->url('admin_product_category_delete', array('id' => $test_category_id)));
$this->assertTrue($this->client->getResponse()->isRedirect($redirectUrl));
$expected = array(EccubeEvents::ADMIN_PRODUCT_CATEGORY_DELETE_COMPLETE);
$this->verifyOutputString($expected);
// after
$this->app['orm.em']->remove($TestCategory);
$this->app['orm.em']->flush();
}