Eccube\Tests\Web\Admin\Customer\CustomerControllerTest::testDelete PHP Method

testDelete() public method

testDelete
public testDelete ( )
    public function testDelete()
    {
        $Customer = $this->createCustomer();
        $this->client->request('DELETE', $this->app->path('admin_customer_delete', array('id' => $Customer->getId())));
        $this->assertTrue($this->client->getResponse()->isRedirect($this->app->url('admin_customer_page', array('page_no' => 1)) . '?resume=1'));
        $DeletedCustomer = $this->app['eccube.repository.customer']->find($Customer->getId());
        $this->expected = 1;
        $this->actual = $DeletedCustomer->getDelFlg();
        $this->verify();
    }