Eccube\Tests\Plugin\Web\Mypage\ChangeControllerTest::testIndexWithPostDefaultPassword PHP Method

testIndexWithPostDefaultPassword() public method

    public function testIndexWithPostDefaultPassword()
    {
        $this->logIn($this->Customer);
        $client = $this->client;
        $form = $this->createFormData();
        $form['password'] = array('first' => $this->app['config']['default_password'], 'second' => $this->app['config']['default_password']);
        $crawler = $client->request('POST', $this->app->path('mypage_change'), array('entry' => $form));
        $this->assertTrue($client->getResponse()->isRedirect($this->app->url('mypage_change_complete')));
        $hookpoins = array(EccubeEvents::FRONT_MYPAGE_CHANGE_INDEX_INITIALIZE, EccubeEvents::FRONT_MYPAGE_CHANGE_INDEX_COMPLETE);
        $this->verifyOutputString($hookpoins);
    }