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

testDisplay() public method

public testDisplay ( )
    public function testDisplay()
    {
        $Product = $this->createProduct();
        $AllProducts = $this->app['eccube.repository.product']->findAll();
        $crawler = $this->client->request('POST', $this->app->url('admin_product_product_display', array('id' => $Product->getId())));
        $this->assertTrue($this->client->getResponse()->isRedirect());
        $expected = array(EccubeEvents::ADMIN_PRODUCT_DISPLAY_COMPLETE);
        $this->verifyOutputString($expected);
    }