]> BookStack Code Mirror - bookstack/blobdiff - tests/Entity/MarkdownTest.php
Fixes for CodeStyle vol.2
[bookstack] / tests / Entity / MarkdownTest.php
index b85e92565aa69037982e82271c41cf19cd46e9d5..7de7ea11bc6dcd5871939acb6d58c89d9d68fdd2 100644 (file)
@@ -1,13 +1,17 @@
-<?php namespace Tests;
+<?php
+
+namespace Tests\Entity;
+
+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()
@@ -21,7 +25,7 @@ class MarkdownTest extends BrowserKitTest
         $this->asAdmin()->visit($this->page->getUrl() . '/edit')
             ->pageHasElement('#html-editor');
     }
-    
+
     public function test_markdown_setting_shows_markdown_editor()
     {
         $this->setMarkdownEditor();
@@ -46,5 +50,4 @@ class MarkdownTest extends BrowserKitTest
         $this->asAdmin()->visit($this->page->getUrl() . '/edit')
             ->seeInField('markdown', $this->page->html);
     }
-
-}
\ No newline at end of file
+}