Eccube\Tests\Web\Admin\Setting\Shop\ShopControllerTest::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['shop_name'] = '';
        }
        $this->client->request('POST', $this->app->url('admin_setting_shop'), array('shop_master' => $formData));
        $this->expected = $expected;
        $this->actual = $this->client->getResponse()->isRedirection();
        $this->verify();
    }