public function testIndexWithPostAndVerify() { $Customer = $this->createCustomer(); $BaseInfo = $this->app['eccube.repository.base_info']->get(); $client = $this->createClient(); // パスワード再発行リクエスト $crawler = $client->request('POST', $this->app->url('forgot'), array('login_email' => $Customer->getEmail(), '_token' => 'dummy')); $this->assertTrue($client->getResponse()->isRedirect($this->app->url('forgot_complete'))); $customer_id = $Customer->getId(); $OrigCustomer = $this->app['eccube.repository.customer']->find($customer_id); $key = $OrigCustomer->getResetKey(); // メール URL クリック $crawler = $client->request('GET', 'http://localhost/forgot/reset/' . $key); $this->assertTrue($client->getResponse()->isSuccessful()); $hookpoins = array(EccubeEvents::FRONT_FORGOT_INDEX_INITIALIZE, EccubeEvents::FRONT_FORGOT_INDEX_COMPLETE, EccubeEvents::MAIL_PASSWORD_RESET, EccubeEvents::FRONT_FORGOT_RESET_COMPLETE, EccubeEvents::MAIL_PASSWORD_RESET_COMPLETE); $this->verifyOutputString($hookpoins); }