Eccube\Tests\Web\Admin\Product\ProductControllerTest::testCopy PHP Метод

testCopy() публичный Метод

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());
        $AllProducts2 = $this->app['eccube.repository.product']->findAll();
        $this->expected = count($AllProducts) + 1;
        $this->actual = count($AllProducts2);
        $this->verify();
    }