]> BookStack Code Mirror - bookstack/blobdiff - tests/Api/ChaptersApiTest.php
Fixed failing references after controller/file reshuffle
[bookstack] / tests / Api / ChaptersApiTest.php
index d2db0313fa44180ea6e8e92aa0d3fbf3a220160c..a48e3b02626f5a80a47031cb71acbf942f707696 100644 (file)
@@ -221,7 +221,7 @@ class ChaptersApiTest extends TestCase
     {
         $types = ['html', 'plaintext', 'pdf', 'markdown'];
         $this->actingAsApiEditor();
-        $this->removePermissionFromUser($this->getEditor(), 'content-export');
+        $this->permissions->removeUserRolePermissions($this->users->editor(), ['content-export']);
 
         $chapter = Chapter::visible()->has('pages')->first();
         foreach ($types as $type) {