public function testHistory404() { $Customer = $this->createCustomer(); $Product = $this->createProduct(); $ProductClasses = $Product->getProductClasses(); // 後方互換のため最初の1つのみ渡す $Order = $this->app['eccube.fixture.generator']->createOrder($Customer, array($ProductClasses[0]), null, 0, 0, 'order_processing'); $this->logIn($Customer); $client = $this->client; try { $crawler = $client->request('GET', $this->app->path('mypage_history', array('id' => $Order->getId()))); $this->fail(); } catch (NotFoundHttpException $e) { $this->actual = $e->getMessage(); $this->expected = ''; } $this->verify(); }