Eccube\Tests\Web\ShoppingControllerTest::testDeliveryWithError PHP Method

testDeliveryWithError() public method

購入確認画面→お届け先設定(入力エラー)
    public function testDeliveryWithError()
    {
        $faker = $this->getFaker();
        $Customer = $this->logIn();
        $client = $this->client;
        // カート画面
        $this->scenarioCartIn($client);
        // 確認画面
        $crawler = $this->scenarioConfirm($client);
        // お届け先指定
        $crawler = $client->request('POST', $this->app->path('shopping_delivery'), array('shopping' => array('shippings' => array(0 => array('delivery' => 5, 'deliveryTime' => 1)), 'payment' => 1, 'message' => $faker->text(), '_token' => 'dummy')));
        $this->assertTrue($client->getResponse()->isSuccessful());
        $this->expected = '有効な値ではありません。';
        $this->actual = $crawler->filter('p.errormsg')->text();
        $this->verify();
    }