Eccube\Tests\Plugin\Web\Admin\Product\ProductControllerTest::testDelete PHP Method

testDelete() public method

public testDelete ( )
    public function testDelete()
    {
        $Product = $this->createProduct();
        $crawler = $this->client->request('DELETE', $this->app->url('admin_product_product_delete', array('id' => $Product->getId())));
        $this->assertTrue($this->client->getResponse()->isRedirect($this->app->url('admin_product_page', array('page_no' => 1)) . '?resume=1'));
        $expected = array(EccubeEvents::ADMIN_PRODUCT_DELETE_COMPLETE);
        $this->verifyOutputString($expected);
    }