Skip to content

Commit

Permalink
Issue #5422 - Improved test for timezone variability.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed Feb 14, 2025
1 parent d340c7f commit 25cc78c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions e107_tests/tests/unit/e_parseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -625,8 +625,8 @@ public function testParseSchemaTemplate()
"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"
}';

Expand All @@ -635,8 +635,8 @@ public function testParseSchemaTemplate()

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']);
Expand Down

0 comments on commit 25cc78c

Please sign in to comment.