public function testRoutingAdminProductCategoryDelete()
{
// before
$TestCreator = $this->createMember();
$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));
// after
$this->app['orm.em']->remove($TestCategory);
$this->app['orm.em']->flush();
}