public test_routing_AdminContentPage_delete ( ) |
public function test_routing_AdminContentPage_delete()
{
$redirectUrl = $this->app->url('admin_content_page');
$DeviceType = $this->app['eccube.repository.master.device_type']->find(DeviceType::DEVICE_TYPE_PC);
$PageLayout = new PageLayout();
$PageLayout->setDeviceType($DeviceType);
$PageLayout->setEditFlg(PageLayout::EDIT_FLG_USER);
$PageLayout->setUrl('dummy');
$this->app['orm.em']->persist($PageLayout);
$this->app['orm.em']->flush();
$this->client->request('DELETE', $this->app->url('admin_content_page_delete', array('id' => $PageLayout->getId())));
$this->assertTrue($this->client->getResponse()->isRedirect($redirectUrl));
$hookpoints = array(EccubeEvents::ADMIN_CONTENT_PAGE_DELETE_COMPLETE);
$this->verifyOutputString($hookpoints);
}