X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/89de328439729a70b7faafc72c38c08489a436a3..refs/pull/1756/head:/tests/CommandsTest.php diff --git a/tests/CommandsTest.php b/tests/CommandsTest.php index a88480969..4aef0ed26 100644 --- a/tests/CommandsTest.php +++ b/tests/CommandsTest.php @@ -2,7 +2,6 @@ use BookStack\Auth\Permissions\JointPermission; use BookStack\Entities\Page; -use BookStack\Entities\Repos\EntityRepo; use BookStack\Auth\User; use BookStack\Entities\Repos\PageRepo; @@ -56,7 +55,7 @@ class CommandsTest extends TestCase $this->asEditor(); $pageRepo = app(PageRepo::class); $page = Page::first(); - $pageRepo->updatePage($page, $page->book_id, ['name' => 'updated page', 'html' => '
new content
', 'summary' => 'page revision testing']); + $pageRepo->update($page, ['name' => 'updated page', 'html' => 'new content
', 'summary' => 'page revision testing']); $pageRepo->updatePageDraft($page, ['name' => 'updated page', 'html' => 'new content in draft
', 'summary' => 'page revision testing']); $this->assertDatabaseHas('page_revisions', [