From: Dan Brown Date: Sun, 30 May 2021 12:23:51 +0000 (+0100) Subject: Updated test to align with export date format change X-Git-Tag: v21.05~1^2~3 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/7634ac4e124033758d91636a08141861c340cd18 Updated test to align with export date format change --- diff --git a/tests/Entity/ExportTest.php b/tests/Entity/ExportTest.php index 482e82ae6..5858c3a79 100644 --- a/tests/Entity/ExportTest.php +++ b/tests/Entity/ExportTest.php @@ -145,9 +145,9 @@ class ExportTest extends TestCase $page = Page::first(); $resp = $this->asEditor()->get($page->getUrl('/export/html')); - $resp->assertSee($page->created_at->toDayDateTimeString()); + $resp->assertSee($page->created_at->formatLocalized('%e %B %Y %H:%M:%S')); $resp->assertDontSee($page->created_at->diffForHumans()); - $resp->assertSee($page->updated_at->toDayDateTimeString()); + $resp->assertSee($page->updated_at->formatLocalized('%e %B %Y %H:%M:%S')); $resp->assertDontSee($page->updated_at->diffForHumans()); }