Eccube\Tests\Plugin\Web\ShoppingControllerTest::testCompleteWithLogin PHP Метод

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

カート→購入確認画面→完了画面
    public function testCompleteWithLogin()
    {
        $faker = $this->getFaker();
        $Customer = $this->logIn();
        $client = $this->client;
        // カート画面
        $this->scenarioCartIn($client);
        $hookpoins = array(EccubeEvents::FRONT_CART_ADD_INITIALIZE, EccubeEvents::FRONT_CART_ADD_COMPLETE);
        // 確認画面
        $crawler = $this->scenarioConfirm($client);
        $hookpoins = array_merge($hookpoins, array(EccubeEvents::FRONT_SHOPPING_INDEX_INITIALIZE));
        // 完了画面
        $crawler = $this->scenarioComplete($client, $this->app->path('shopping_confirm'));
        $this->assertTrue($client->getResponse()->isRedirect($this->app->url('shopping_complete')));
        $hookpoins = array_merge($hookpoins, array(EccubeEvents::FRONT_SHOPPING_CONFIRM_INITIALIZE, EccubeEvents::SERVICE_SHOPPING_ORDER_STATUS, EccubeEvents::FRONT_SHOPPING_CONFIRM_PROCESSING, EccubeEvents::MAIL_ORDER, EccubeEvents::FRONT_SHOPPING_CONFIRM_COMPLETE));
        $this->verifyOutputString($hookpoins);
    }