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

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

購入確認画面→お届け先の設定→お届け先一覧
    public function testShippingShipping()
    {
        $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, EccubeEvents::FRONT_SHOPPING_SHIPPING_CHANGE_INITIALIZE));
        // お届け先指定画面
        $shipping_url = $crawler->filter('a.btn-shipping')->attr('href');
        $crawler = $this->scenarioComplete($client, $shipping_url);
        $shipping_url = str_replace('shipping_change', 'shipping', $shipping_url);
        // お届け先一覧
        $crawler = $client->request('GET', $shipping_url);
        $this->assertTrue($client->getResponse()->isSuccessful());
        $hookpoins = array_merge($hookpoins, array());
        $this->verifyOutputString($hookpoins);
    }