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

testDeleteFail() public method

test delete fail
public testDeleteFail ( )
    public function testDeleteFail()
    {
        $pid = 9999;
        $this->client->request('DELETE', $this->app->url('admin_setting_shop_delivery_delete', array('id' => $pid)));
        $this->assertTrue($this->client->getResponse()->isRedirection());
        $outPut = $this->app['session']->getFlashBag()->get('eccube.admin.warning');
        $this->actual = array_shift($outPut);
        $this->expected = 'admin.delete.warning';
        $this->verify();
    }