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

testDeleteSuccess() public method

test delete
public testDeleteSuccess ( )
    public function testDeleteSuccess()
    {
        $Delivery = $this->createDelivery();
        $pid = $Delivery->getId();
        $this->client->request('DELETE', $this->app->url('admin_setting_shop_delivery_delete', array('id' => $pid)));
        $this->assertTrue($this->client->getResponse()->isRedirection());
        $this->actual = $Delivery->getDelFlg();
        $this->expected = Constant::ENABLED;
        $this->verify();
    }