Eccube\Tests\Plugin\Web\Admin\Product\ClassNameControllerTest::testIndexWithPost PHP Method

testIndexWithPost() public method

public testIndexWithPost ( )
    public function testIndexWithPost()
    {
        $crawler = $this->client->request('POST', $this->app->url('admin_product_class_name'), array('admin_class_name' => array('_token' => 'dummy', 'name' => '規格1')));
        $this->assertTrue($this->client->getResponse()->isRedirect($this->app->url('admin_product_class_name')));
        $expected = array(EccubeEvents::ADMIN_PRODUCT_CLASS_NAME_INDEX_INITIALIZE, EccubeEvents::ADMIN_PRODUCT_CLASS_NAME_INDEX_COMPLETE);
        $this->verifyOutputString($expected);
    }