From 082a1982d36f20a4582f9b9a5e795e959fdb57d7 Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Fri, 31 Jan 2020 21:40:45 +0100 Subject: [PATCH] fix ApiTest --- tests/include/ApiTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/include/ApiTest.php b/tests/include/ApiTest.php index 3ef64b3171..e8e148d434 100644 --- a/tests/include/ApiTest.php +++ b/tests/include/ApiTest.php @@ -19,6 +19,7 @@ use Friendica\DI; use Friendica\Model\Contact; use Friendica\Network\HTTPException; use Friendica\Test\Util\Database\StaticDatabase; +use Friendica\Util\Temporal; use Monolog\Handler\TestHandler; require_once __DIR__ . '/../../include/api.php'; @@ -3940,10 +3941,11 @@ class ApiTest extends DatabaseTest $this->app->argv = ['api', 'friendica', 'notification']; $this->app->argc = count($this->app->argv); $result = api_friendica_notification('xml'); + $dateRel = Temporal::getRelativeDate('2020-01-01 12:12:02'); $assertXml=<< - + XML; $this->assertXmlStringEqualsXmlString($assertXml, $result);