Use X-REQUEST-ID for Error pages
This commit is contained in:
@@ -32,7 +32,7 @@ class RateLimitStatusTest extends ApiTest
|
||||
public function testWithJson()
|
||||
{
|
||||
$response = (new RateLimitStatus(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), [], ['extension' => 'json']))
|
||||
->run();
|
||||
->run($this->httpExceptionMock);
|
||||
|
||||
$result = $this->toJson($response);
|
||||
|
||||
@@ -48,7 +48,7 @@ class RateLimitStatusTest extends ApiTest
|
||||
public function testWithXml()
|
||||
{
|
||||
$response = (new RateLimitStatus(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), [], ['extension' => 'xml']))
|
||||
->run();
|
||||
->run($this->httpExceptionMock);
|
||||
|
||||
self::assertEquals([
|
||||
'Content-type' => ['text/xml'],
|
||||
|
||||
Reference in New Issue
Block a user