Eccube\Tests\Plugin\Web\Admin\Content\BlockControllerTest::test_routing_AdminContentBlock_editWithPost PHP Method

test_routing_AdminContentBlock_editWithPost() public method

    public function test_routing_AdminContentBlock_editWithPost()
    {
        $crawler = $this->client->request('POST', $this->app->url('admin_content_block_edit', array('id' => 1)), array('block' => array('name' => 'newblock', 'file_name' => 'file_name', 'block_html' => '<p>test</p>', 'DeviceType' => 1, 'id' => 1, '_token' => 'token')));
        $this->assertTrue($this->client->getResponse()->isRedirect($this->app->url('admin_content_block_edit', array('id' => 1))));
        $hookpoins = array(EccubeEvents::ADMIN_CONTENT_BLOCK_EDIT_INITIALIZE, EccubeEvents::ADMIN_CONTENT_BLOCK_EDIT_COMPLETE);
        $this->verifyOutputString($hookpoins);
    }