Permalink
Browse files

MINOR Removed obsolete 'usetestmanifest' flag from documentation and …

…RestfulServiceTest
  • Loading branch information...
1 parent bd2a547 commit 1a598fe39e4e0b7a9fdba388713986ef0a9d3e82 @chillu chillu committed Mar 27, 2011
Showing with 1 addition and 4 deletions.
  1. +0 −2 docs/en/reference/urlvariabletools.md
  2. +1 −2 tests/api/RestfulServiceTest.php
@@ -35,8 +35,6 @@ Append the option and corresponding value to your URL in your browser's address
| URL Variable | | Values | | Description |
| ------------ | | ------ | | ----------- |
- | debugmanifest | | 1 | | Show the entire Sapphire manifest as currently built (Use `/dev/build` to rebuild) |
- | usetestmanifest | | 1 | | Force use of the default test manifest |
| debugmethods | | 1 | | Shows all methods available when an object is constructed (useful when extending classes or using object decorators) |
| debugfailover | | 1 | | Shows failover methods from classes extended |
@@ -109,11 +109,10 @@ function testHttpErrorWithoutCache() {
}
function testHttpErrorWithCache() {
- $subUrl = 'RestfulServiceTest_Controller/httpErrorWithCache?usetestmanifest=1&flush=1';
+ $subUrl = 'RestfulServiceTest_Controller/httpErrorWithCache';
$connection = new RestfulServiceTest_MockErrorService(Director::absoluteBaseURL(), 0);
$this->createFakeCachedResponse($connection, $subUrl);
$response = $connection->request($subUrl);
-
$this->assertEquals(400, $response->getStatusCode());
$this->assertEquals("Cache response body",$response->getCachedBody());
$this->assertContains("<error>HTTP Error</error>", $response->getBody());

0 comments on commit 1a598fe

Please sign in to comment.