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

testRoutingAdminProductProductEdit() public method

    public function testRoutingAdminProductProductEdit()
    {
        $TestProduct = $this->createProduct();
        $test_product_id = $this->app['eccube.repository.product']->findOneBy(array('name' => $TestProduct->getName()))->getId();
        $crawler = $this->client->request('GET', $this->app->url('admin_product_product_edit', array('id' => $test_product_id)));
        $this->assertTrue($this->client->getResponse()->isSuccessful());
        $expected = array(EccubeEvents::ADMIN_PRODUCT_EDIT_INITIALIZE, EccubeEvents::ADMIN_PRODUCT_EDIT_SEARCH);
        $this->verifyOutputString($expected);
    }