mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 00:04:27 +02:00
Replace IRespondToRequests with PSR-7 ResponseInterface
This commit is contained in:
parent
ca5c40c97e
commit
7cd85873ee
17 changed files with 96 additions and 92 deletions
|
@ -68,7 +68,7 @@ XML;
|
|||
$notification = new Notification(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), [], ['extension' => 'xml']);
|
||||
$response = $notification->run();
|
||||
|
||||
self::assertXmlStringEqualsXmlString($assertXml, $response->getContent());
|
||||
self::assertXmlStringEqualsXmlString($assertXml, (string)$response->getBody());
|
||||
}
|
||||
|
||||
public function testWithJsonResult()
|
||||
|
@ -76,6 +76,6 @@ XML;
|
|||
$notification = new Notification(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), [], ['extension' => 'json']);
|
||||
$response = $notification->run();
|
||||
|
||||
self::assertJson($response->getContent());
|
||||
self::assertJson($response->getBody());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue