Eccube\Tests\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'));
        $DeletedProduct = $this->app['eccube.repository.product']->find($Product->getId());
        $this->expected = 1;
        $this->actual = $DeletedProduct->getDelFlg();
        $this->verify();
    }