public function testShippingChangeWithPost() { $faker = $this->getFaker(); $Customer = $this->logIn(); $client = $this->client; // カート画面 $this->scenarioCartIn($client); // 確認画面 $crawler = $this->scenarioConfirm($client); // お届け先指定画面 $shipping_url = $crawler->filter('a.btn-shipping')->attr('href'); $crawler = $this->scenarioComplete($client, $shipping_url); // /shipping/shipping_change/<id> から /shipping/shipping/<id> へリダイレクト $shipping_url = str_replace('shipping_change', 'shipping', $shipping_url); $this->assertTrue($client->getResponse()->isRedirect($shipping_url)); }