Eccube\Tests\Plugin\Web\Mypage\WithdrawControllerTest::testIndexWithPostComplete PHP Метод

testIndexWithPostComplete() публичный Метод

    public function testIndexWithPostComplete()
    {
        $this->logIn($this->Customer);
        $client = $this->client;
        $crawler = $client->request('POST', $this->app->path('mypage_withdraw'), array('form' => array('_token' => 'dummy'), 'mode' => 'complete'));
        $this->assertTrue($client->getResponse()->isRedirect($this->app->url('mypage_withdraw_complete')));
        $hookpoins = array(EccubeEvents::FRONT_MYPAGE_WITHDRAW_INDEX_INITIALIZE, EccubeEvents::FRONT_MYPAGE_WITHDRAW_INDEX_COMPLETE, EccubeEvents::MAIL_CUSTOMER_WITHDRAW);
        $this->verifyOutputString($hookpoins);
    }