]> BookStack Code Mirror - bookstack/blobdiff - tests/Entity/ExportTest.php
Merge branch 'master' into patch-5
[bookstack] / tests / Entity / ExportTest.php
index 5fff84b8dfaa79dadc6efec5ff4202ca6f9a97c3..fdcd833665d267f380631110fc2fc51a7a6b6f27 100644 (file)
@@ -1,8 +1,8 @@
 <?php namespace Tests;
 
 
-use BookStack\Chapter;
-use BookStack\Page;
+use BookStack\Entities\Chapter;
+use BookStack\Entities\Page;
 
 class ExportTest extends TestCase
 {
@@ -123,4 +123,15 @@ class ExportTest extends TestCase
         $resp->assertSee($customHeadContent);
     }
 
+    public function test_page_html_export_use_absolute_dates()
+    {
+        $page = Page::first();
+
+        $resp = $this->asEditor()->get($page->getUrl('/export/html'));
+        $resp->assertSee($page->created_at->toDayDateTimeString());
+        $resp->assertDontSee($page->created_at->diffForHumans());
+        $resp->assertSee($page->updated_at->toDayDateTimeString());
+        $resp->assertDontSee($page->updated_at->diffForHumans());
+    }
+
 }
\ No newline at end of file