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

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

購入確認画面→支払い方法選択
public testPaymentWithPost ( )
    public function testPaymentWithPost()
    {
        $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 = $client->request('POST', $this->app->path('shopping_payment'), array('shopping' => array('shippings' => array(0 => array('delivery' => 1, 'deliveryTime' => 1)), 'payment' => 1, 'message' => $faker->text(), '_token' => 'dummy')));
        $this->assertTrue($client->getResponse()->isRedirect($this->app->url('shopping')));
        $hookpoins = array_merge($hookpoins, array(EccubeEvents::FRONT_SHOPPING_PAYMENT_INITIALIZE, EccubeEvents::FRONT_SHOPPING_PAYMENT_COMPLETE));
        $this->verifyOutputString($hookpoins);
    }