public function testEdit($isSuccess, $expected)
{
$formData = $this->createFormData();
if (!$isSuccess) {
$formData['name'] = '';
}
$Delivery = $this->createDelivery();
$this->client->request('POST', $this->app->url('admin_setting_shop_delivery_edit', array('id' => $Delivery->getId())), array('delivery' => $formData));
$this->expected = $expected;
$this->actual = $this->client->getResponse()->isRedirection();
$this->verify();
}