mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Removed obsolete 'usetestmanifest' flag from documentation and RestfulServiceTest
This commit is contained in:
parent
bd2a54769c
commit
1a598fe39e
@ -35,8 +35,6 @@ Append the option and corresponding value to your URL in your browser's address
|
|||||||
|
|
||||||
| URL Variable | | Values | | Description |
|
| 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) |
|
| 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 |
|
| debugfailover | | 1 | | Shows failover methods from classes extended |
|
||||||
|
|
||||||
|
@ -109,11 +109,10 @@ class RestfulServiceTest extends SapphireTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function testHttpErrorWithCache() {
|
function testHttpErrorWithCache() {
|
||||||
$subUrl = 'RestfulServiceTest_Controller/httpErrorWithCache?usetestmanifest=1&flush=1';
|
$subUrl = 'RestfulServiceTest_Controller/httpErrorWithCache';
|
||||||
$connection = new RestfulServiceTest_MockErrorService(Director::absoluteBaseURL(), 0);
|
$connection = new RestfulServiceTest_MockErrorService(Director::absoluteBaseURL(), 0);
|
||||||
$this->createFakeCachedResponse($connection, $subUrl);
|
$this->createFakeCachedResponse($connection, $subUrl);
|
||||||
$response = $connection->request($subUrl);
|
$response = $connection->request($subUrl);
|
||||||
|
|
||||||
$this->assertEquals(400, $response->getStatusCode());
|
$this->assertEquals(400, $response->getStatusCode());
|
||||||
$this->assertEquals("Cache response body",$response->getCachedBody());
|
$this->assertEquals("Cache response body",$response->getCachedBody());
|
||||||
$this->assertContains("<error>HTTP Error</error>", $response->getBody());
|
$this->assertContains("<error>HTTP Error</error>", $response->getBody());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user