Eccube\Tests\Plugin\Web\Admin\Order\OrderControllerTest::testDelete PHP Method

testDelete() public method

public testDelete ( )
    public function testDelete()
    {
        $Order = $this->createOrder($this->createCustomer());
        $crawler = $this->client->request('DELETE', $this->app->path('admin_order_delete', array('id' => $Order->getId())));
        $this->assertTrue($this->client->getResponse()->isRedirect($this->app->url('admin_order_page', array('page_no' => 1)) . '?resume=1'));
        $expected = array(EccubeEvents::ADMIN_ORDER_DELETE_COMPLETE);
        $this->verifyOutputString($expected);
    }