Example #1
0
 public function testCheckRouteException()
 {
     /** Prepare mocks for SUT constructor. */
     $checkRouteData = $this->_prepareMockDataForCheckRouteTest();
     $this->_routeMock->expects($this->once())->method('match')->with($checkRouteData['request'])->will($this->returnValue(false));
     $this->setExpectedException('Mage_Webapi_Exception', 'Request does not match any route.', Mage_Webapi_Exception::HTTP_NOT_FOUND);
     /** Execute SUT. */
     $this->_router->checkRoute($checkRouteData['request'], $checkRouteData['methodName'], $checkRouteData['version']);
 }