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

testCopy() public method

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