mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 00:04:27 +02:00
Adapt API tests for dynamic usage
This commit is contained in:
parent
cca1be21a3
commit
d32f8e5285
8 changed files with 23 additions and 15 deletions
|
@ -67,14 +67,16 @@ class NotificationTest extends ApiTest
|
|||
</notes>
|
||||
XML;
|
||||
|
||||
Notification::rawContent(['extension' => 'xml']);
|
||||
$notification = new Notification(['extension' => 'xml']);
|
||||
$notification->rawContent();
|
||||
|
||||
self::assertXmlStringEqualsXmlString($assertXml, ApiResponseDouble::getOutput());
|
||||
}
|
||||
|
||||
public function testWithJsonResult()
|
||||
{
|
||||
Notification::rawContent(['parameter' => 'json']);
|
||||
$notification = new Notification(['parameter' => 'json']);
|
||||
$notification->rawContent();
|
||||
|
||||
$result = json_encode(ApiResponseDouble::getOutput());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue