Eccube\Tests\Web\Admin\Setting\Shop\TradelawControllerTest::testSubmit PHP Method

testSubmit() public method

public testSubmit ( boolean $isSuccess, boolean $expected )
$isSuccess boolean
$expected boolean
    public function testSubmit($isSuccess, $expected)
    {
        $formData = $this->createFormData();
        if (!$isSuccess) {
            $formData['law_company'] = '';
        }
        $this->client->request('POST', $this->app->url('admin_setting_shop_tradelaw'), array('tradelaw' => $formData));
        $this->expected = $expected;
        $this->actual = $this->client->getResponse()->isRedirection();
        $this->verify();
    }