Eccube\Tests\Web\AbstractShoppingControllerTestCase::scenarioComplete PHP Method

scenarioComplete() protected method

protected scenarioComplete ( $client, $confirm_url, array $shippings = [] )
$shippings array
    protected function scenarioComplete($client, $confirm_url, array $shippings = array())
    {
        $faker = $this->getFaker();
        if (count($shippings) < 1) {
            $shippings = array(array('delivery' => 1, 'deliveryTime' => 1));
        }
        $crawler = $client->request('POST', $confirm_url, array('shopping' => array('shippings' => $shippings, 'payment' => 1, 'message' => $faker->text(), '_token' => 'dummy')));
        return $crawler;
    }