1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-25 00:41:52 +02:00

Issue #5422 - Improved test for timezone variability.

This commit is contained in:
camer0n
2025-02-14 11:23:35 -08:00
parent d340c7f465
commit 25cc78c63d

View File

@@ -625,8 +625,8 @@ EXPECTED;
"url": "https://localhost/e107/e107_images/button.png"
}
},
"datePublished": "2025-01-01T12:00:00+00:00",
"dateModified": "2025-01-01T09:00:00+00:00",
"datePublished": "2025-01-01T",
"dateModified": "2025-01-01T",
"articleBody": "Body of the news item"
}';
@@ -635,8 +635,8 @@ EXPECTED;
self::assertSame($expectedDecoded['headline'],$resultDecoded['headline']);
self::assertSame($expectedDecoded['description'],$resultDecoded['description']);
self::assertSame($expectedDecoded['datePublished'],$resultDecoded['datePublished']);
self::assertSame($expectedDecoded['dateModified'],$resultDecoded['dateModified']);
self::assertStringContainsString($expectedDecoded['datePublished'],$resultDecoded['datePublished']);
self::assertStringContainsString($expectedDecoded['dateModified'],$resultDecoded['dateModified']);
self::assertSame($expectedDecoded['articleBody'],$resultDecoded['articleBody']);
self::assertSame($expectedDecoded['author']['name'],$resultDecoded['author']['name']);
self::assertSame($expectedDecoded['publisher']['name'],$resultDecoded['publisher']['name']);