Eccube\Tests\Web\Admin\Setting\Shop\TaxRuleControllerTest::testEditParam PHP Method

testEditParam() public method

public testEditParam ( )
    public function testEditParam()
    {
        $BaseInfo = $this->app['eccube.repository.base_info']->get();
        $taxRule = $BaseInfo->getOptionProductTaxRule();
        $newTaxRule = $taxRule ? 0 : 1;
        $this->client->request('POST', $this->app->url('admin_setting_shop_tax_edit_param', array('id' => 1)), array('tax_rule' => array('_token' => 'dummy', 'option_product_tax_rule' => $newTaxRule)));
        $redirectUrl = $this->app->url('admin_setting_shop_tax');
        $this->assertTrue($this->client->getResponse()->isRedirect($redirectUrl));
        $this->expected = $newTaxRule;
        $this->actual = $BaseInfo->getOptionProductTaxRule();
        $this->verify();
    }