Eccube\Tests\Plugin\Web\ProductControllerTest::testRoutingProductFavoriteAdd PHP Method

testRoutingProductFavoriteAdd() public method

    public function testRoutingProductFavoriteAdd()
    {
        // データ整備後にテストを実施すること
        $this->markTestSkipped();
        // お気に入り商品機能を有効化
        $BaseInfo = $this->app['eccube.repository.base_info']->get();
        $BaseInfo->setOptionFavoriteProduct(Constant::ENABLED);
        $this->logIn();
        $client = $this->client;
        $form = $this->createFormData2();
        $client->request('POST', $this->app->url('product_detail', array('id' => '1')), $form);
        $hookpoins = array(EccubeEvents::FRONT_PRODUCT_DETAIL_INITIALIZE, EccubeEvents::FRONT_PRODUCT_DETAIL_FAVORITE);
        $this->verifyOutputString($hookpoins);
    }