mirror of
https://github.com/friendica/friendica
synced 2025-04-24 11:10:18 +00:00
Use X-REQUEST-ID for Error pages
This commit is contained in:
parent
5584e7a4e5
commit
4f1bb0d274
55 changed files with 218 additions and 130 deletions
|
@ -39,7 +39,7 @@ class StatusesTest extends ApiTest
|
|||
$this->expectException(BadRequestException::class);
|
||||
|
||||
(new Statuses(DI::dba(), DI::twitterStatus(), DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), []))
|
||||
->run();
|
||||
->run($this->httpExceptionMock);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -48,7 +48,7 @@ class StatusesTest extends ApiTest
|
|||
public function testApiListsStatusesWithListId()
|
||||
{
|
||||
$response = (new Statuses(DI::dba(), DI::twitterStatus(), DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), []))
|
||||
->run([
|
||||
->run($this->httpExceptionMock, [
|
||||
'list_id' => 1,
|
||||
'page' => -1,
|
||||
'max_id' => 10
|
||||
|
@ -68,7 +68,7 @@ class StatusesTest extends ApiTest
|
|||
public function testApiListsStatusesWithListIdAndRss()
|
||||
{
|
||||
$response = (new Statuses(DI::dba(), DI::twitterStatus(), DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), [], ['extension' => 'rss']))
|
||||
->run([
|
||||
->run($this->httpExceptionMock, [
|
||||
'list_id' => 1
|
||||
]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue