Updated test to align with export date format change

This commit is contained in:
Dan Brown 2021-05-30 13:23:51 +01:00
parent c4f5ab12cf
commit 7634ac4e12
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -145,9 +145,9 @@ class ExportTest extends TestCase
$page = Page::first(); $page = Page::first();
$resp = $this->asEditor()->get($page->getUrl('/export/html')); $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->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()); $resp->assertDontSee($page->updated_at->diffForHumans());
} }