Eccube\Tests\Web\Admin\Setting\Shop\PaymentControllerTest::testEdit PHP Method

testEdit() public method

public testEdit ( $isSuccess, $expected )
$isSuccess
$expected
    public function testEdit($isSuccess, $expected)
    {
        $formData = $this->createFormData();
        if (!$isSuccess) {
            $formData['method'] = '';
        }
        $Payment = $this->app['eccube.repository.payment']->find(1);
        $this->client->request('POST', $this->app->url('admin_setting_shop_payment_edit', array('id' => $Payment->getId())), array('payment_register' => $formData));
        $this->expected = $expected;
        $this->actual = $this->client->getResponse()->isRedirection();
        $this->verify();
    }