public function testEditWithPost() { $this->logIn($this->Customer); $client = $this->client; $CustomerAddress = $this->app['eccube.repository.customer_address']->findOneBy(array('Customer' => $this->Customer)); $form = $this->createFormData(); $crawler = $client->request('POST', $this->app->path('mypage_delivery_edit', array('id' => $CustomerAddress->getId())), array('customer_address' => $form)); $this->assertTrue($client->getResponse()->isRedirect($this->app->url('mypage_delivery'))); $hookpoins = array(EccubeEvents::FRONT_MYPAGE_DELIVERY_EDIT_INITIALIZE, EccubeEvents::FRONT_MYPAGE_DELIVERY_EDIT_COMPLETE); $this->verifyOutputString($hookpoins); }