]> BookStack Code Mirror - bookstack/blobdiff - tests/Entity/MarkdownTest.php
Fixes for CodeStyle vol.2
[bookstack] / tests / Entity / MarkdownTest.php
index eaf4d62c3ec9d964f38e91c1bc5db7f47c2086ef..7de7ea11bc6dcd5871939acb6d58c89d9d68fdd2 100644 (file)
@@ -1,14 +1,17 @@
 <?php
 
+namespace Tests\Entity;
 
-class MarkdownTest extends TestCase
+use Tests\BrowserKitTest;
+
+class MarkdownTest extends BrowserKitTest
 {
     protected $page;
 
-    public function setUp()
+    public function setUp(): void
     {
         parent::setUp();
-        $this->page = \BookStack\Page::first();
+        $this->page = \BookStack\Entities\Models\Page::first();
     }
 
     protected function setMarkdownEditor()
@@ -22,7 +25,7 @@ class MarkdownTest extends TestCase
         $this->asAdmin()->visit($this->page->getUrl() . '/edit')
             ->pageHasElement('#html-editor');
     }
-    
+
     public function test_markdown_setting_shows_markdown_editor()
     {
         $this->setMarkdownEditor();
@@ -47,5 +50,4 @@ class MarkdownTest extends TestCase
         $this->asAdmin()->visit($this->page->getUrl() . '/edit')
             ->seeInField('markdown', $this->page->html);
     }
-
-}
\ No newline at end of file
+}