mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
Issue #5422 - Improved test for timezone variability.
This commit is contained in:
@@ -625,8 +625,8 @@ EXPECTED;
|
|||||||
"url": "https://localhost/e107/e107_images/button.png"
|
"url": "https://localhost/e107/e107_images/button.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"datePublished": "2025-01-01T12:00:00+00:00",
|
"datePublished": "2025-01-01T",
|
||||||
"dateModified": "2025-01-01T09:00:00+00:00",
|
"dateModified": "2025-01-01T",
|
||||||
"articleBody": "Body of the news item"
|
"articleBody": "Body of the news item"
|
||||||
}';
|
}';
|
||||||
|
|
||||||
@@ -635,8 +635,8 @@ EXPECTED;
|
|||||||
|
|
||||||
self::assertSame($expectedDecoded['headline'],$resultDecoded['headline']);
|
self::assertSame($expectedDecoded['headline'],$resultDecoded['headline']);
|
||||||
self::assertSame($expectedDecoded['description'],$resultDecoded['description']);
|
self::assertSame($expectedDecoded['description'],$resultDecoded['description']);
|
||||||
self::assertSame($expectedDecoded['datePublished'],$resultDecoded['datePublished']);
|
self::assertStringContainsString($expectedDecoded['datePublished'],$resultDecoded['datePublished']);
|
||||||
self::assertSame($expectedDecoded['dateModified'],$resultDecoded['dateModified']);
|
self::assertStringContainsString($expectedDecoded['dateModified'],$resultDecoded['dateModified']);
|
||||||
self::assertSame($expectedDecoded['articleBody'],$resultDecoded['articleBody']);
|
self::assertSame($expectedDecoded['articleBody'],$resultDecoded['articleBody']);
|
||||||
self::assertSame($expectedDecoded['author']['name'],$resultDecoded['author']['name']);
|
self::assertSame($expectedDecoded['author']['name'],$resultDecoded['author']['name']);
|
||||||
self::assertSame($expectedDecoded['publisher']['name'],$resultDecoded['publisher']['name']);
|
self::assertSame($expectedDecoded['publisher']['name'],$resultDecoded['publisher']['name']);
|
||||||
|
Reference in New Issue
Block a user