1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-09 10:22:51 +03:00

API: Fixed misaligned image datetime format

For #4294
This commit is contained in:
Dan Brown
2023-06-10 10:52:39 +01:00
parent 59c7077fd9
commit 1e220c473f
5 changed files with 9 additions and 7 deletions

View File

@@ -232,6 +232,8 @@ class ImageGalleryApiTest extends TestCase
'html' => "<a href=\"{$image->url}\" target=\"_blank\"><img src=\"{$displayUrl}\" alt=\"{$image->name}\"></a>",
'markdown' => "![{$image->name}]({$displayUrl})",
],
'created_at' => $image->created_at->toISOString(),
'updated_at' => $image->updated_at->toISOString(),
]);
$this->assertStringStartsWith('http://', $resp->json('thumbs.gallery'));
$this->assertStringStartsWith('http://', $resp->json('thumbs.display'));