Fix tests

This commit is contained in:
Philipp
2021-11-17 22:21:03 +01:00
parent ce578a7745
commit f3d7d610e8
9 changed files with 27 additions and 20 deletions

View File

@@ -67,7 +67,7 @@ class NotificationTest extends ApiTest
</notes>
XML;
$notification = new Notification(['extension' => 'xml']);
$notification = new Notification(DI::l10n(), ['extension' => 'xml']);
$notification->rawContent();
self::assertXmlStringEqualsXmlString($assertXml, ApiResponseDouble::getOutput());
@@ -75,7 +75,7 @@ XML;
public function testWithJsonResult()
{
$notification = new Notification(['parameter' => 'json']);
$notification = new Notification(DI::l10n(),['parameter' => 'json']);
$notification->rawContent();
$result = json_encode(ApiResponseDouble::getOutput());