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();
}