]> BookStack Code Mirror - bookstack/blobdiff - tests/Entity/SortTest.php
Finished refactor of entity repos
[bookstack] / tests / Entity / SortTest.php
index d78b9447973751103fdf659b9149ea8693a1655e..4784297a2e804d7f0e2f74c91ddf60314670d4ae 100644 (file)
@@ -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)