X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/96c074bb5620565df1da27551d70fe6214218034..refs/pull/262/head:/tests/Entity/EntityTest.php diff --git a/tests/Entity/EntityTest.php b/tests/Entity/EntityTest.php index 296aa72ed..9fd4eb9ad 100644 --- a/tests/Entity/EntityTest.php +++ b/tests/Entity/EntityTest.php @@ -136,7 +136,7 @@ class EntityTest extends TestCase $this->asAdmin() ->visit('/books') // Choose to create a book - ->click('Add new book') + ->click('Create New Book') ->seePageIs('/books/create') // Fill out form & save ->type($book->name, '#name') @@ -168,7 +168,7 @@ class EntityTest extends TestCase $entities = $this->createEntityChainBelongingToUser($creator, $updater); $this->actingAs($creator); app('BookStack\Repos\UserRepo')->destroy($creator); - app('BookStack\Repos\PageRepo')->saveRevision($entities['page']); + app('BookStack\Repos\EntityRepo')->savePageRevision($entities['page']); $this->checkEntitiesViewable($entities); } @@ -181,7 +181,7 @@ class EntityTest extends TestCase $entities = $this->createEntityChainBelongingToUser($creator, $updater); $this->actingAs($updater); app('BookStack\Repos\UserRepo')->destroy($updater); - app('BookStack\Repos\PageRepo')->saveRevision($entities['page']); + app('BookStack\Repos\EntityRepo')->savePageRevision($entities['page']); $this->checkEntitiesViewable($entities); } @@ -236,8 +236,9 @@ class EntityTest extends TestCase ->type('super test page', '#name') ->press('Save Page') // Check redirect - ->seePageIs($newPageUrl) - ->visit($pageUrl) + ->seePageIs($newPageUrl); + + $this->visit($pageUrl) ->seePageIs($newPageUrl); }