public function testRoutingAdminOrderNewPost() { $Shippings = array(); $Shippings[] = $this->createShipping($this->Product->getProductClasses()->toArray()); $Shippings[] = $this->createShipping($this->Product->getProductClasses()->toArray()); $crawler = $this->client->request('POST', $this->app->url('admin_order_new'), array('order' => $this->createFormDataForMultiple($this->Customer, $Shippings), 'mode' => 'register')); $url = $crawler->filter('a')->text(); $this->assertTrue($this->client->getResponse()->isRedirect($url)); }