Eccube\Tests\Plugin\Web\Admin\Content\LayoutControllerTest::testIndexWithPostPreview PHP Метод

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

    public function testIndexWithPostPreview()
    {
        $crawler = $this->client->request('POST', $this->app->url('admin_content_layout_preview', array('id' => 1)), array('form' => array('_token' => 'dummy'), 'name_1' => 'カゴの中', 'id_1' => 2, 'target_id_1' => 2, 'top_1' => 2, 'name_2' => '商品検索', 'id_2' => 3, 'target_id_2' => 3, 'top_2' => 3));
        $this->assertTrue($this->client->getResponse()->isRedirect($this->app->url('homepage') . '?preview=1'));
        $hookpoins = array(EccubeEvents::ADMIN_CONTENT_LAYOUT_INDEX_INITIALIZE, EccubeEvents::ADMIN_CONTENT_LAYOUT_INDEX_COMPLETE);
        $this->verifyOutputString($hookpoins);
    }