]> BookStack Code Mirror - bookstack/blobdiff - tests/Entity/SortTest.php
Upgraded to Laravel 5.4
[bookstack] / tests / Entity / SortTest.php
index d78b9447973751103fdf659b9149ea8693a1655e..3c6400d5817a26e3493cb61e3506e83c81a01d2c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-class SortTest extends TestCase
+class SortTest extends BrowserKitTest
 {
     protected $book;
 
@@ -13,8 +13,8 @@ class SortTest extends TestCase
     public function test_drafts_do_not_show_up()
     {
         $this->asAdmin();
-        $pageRepo = app('\BookStack\Repos\PageRepo');
-        $draft = $pageRepo->getDraftPage($this->book);
+        $entityRepo = app('\BookStack\Repos\EntityRepo');
+        $draft = $entityRepo->getDraftPage($this->book);
 
         $this->visit($this->book->getUrl())
             ->see($draft->name)