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

testEdit() public method

Delivery edit test
public testEdit ( boolean $isSuccess, boolean $expected )
$isSuccess boolean
$expected boolean
    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();
    }