public function testShippingEditChangeWithPostVerify() { $faker = $this->getFaker(); $client = $this->createClient(); $this->scenarioCartIn($client); $formData = $this->createNonmemberFormData(); $this->scenarioInput($client, $formData); // 購入確認画面 $crawler = $this->scenarioConfirm($client); $this->expected = 'ご注文内容のご確認'; $this->actual = $crawler->filter('h1.page-heading')->text(); $this->verify(); // お届け先設定画面への遷移前チェック $shipping_edit_change_url = $crawler->filter('a.btn-shipping-edit')->attr('href'); $crawler = $this->scenarioComplete($client, $shipping_edit_change_url); // お届け先設定画面へ遷移 $shipping_edit_url = str_replace('shipping_edit_change', 'shipping_edit', $shipping_edit_change_url); $this->assertTrue($client->getResponse()->isRedirect($shipping_edit_url)); }