]> BookStack Code Mirror - bookstack/blobdiff - tests/Api/TestsApi.php
Copied over work from user_permissions branch
[bookstack] / tests / Api / TestsApi.php
index 0cdd93741272c608b38233e8f75365ab5bc740cb..501f2875458616da28bf33906ae49ac267c0465d 100644 (file)
@@ -12,7 +12,7 @@ trait TestsApi
      */
     protected function actingAsApiEditor()
     {
-        $this->actingAs($this->getEditor(), 'api');
+        $this->actingAs($this->users->editor(), 'api');
 
         return $this;
     }
@@ -22,7 +22,7 @@ trait TestsApi
      */
     protected function actingAsApiAdmin()
     {
-        $this->actingAs($this->getAdmin(), 'api');
+        $this->actingAs($this->users->admin(), 'api');
 
         return $this;
     }