public function testDelete()
{
$this->logIn($this->Customer);
$client = $this->client;
$CustomerAddress = $this->app['eccube.repository.customer_address']->findOneBy(array('Customer' => $this->Customer));
$id = $CustomerAddress->getId();
$form = $this->createFormData();
$crawler = $client->request('DELETE', $this->app->path('mypage_delivery_delete', array('id' => $id)));
$this->assertTrue($client->getResponse()->isRedirect($this->app->url('mypage_delivery')));
$CustomerAddress = $this->app['eccube.repository.customer_address']->find($id);
$this->assertNull($CustomerAddress);
$hookpoins = array(EccubeEvents::FRONT_MYPAGE_DELIVERY_DELETE_COMPLETE);
$this->verifyOutputString($hookpoins);
}