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);