]> BookStack Code Mirror - bookstack/blobdiff - tests/TestCase.php
Added initial translation into German (formal)
[bookstack] / tests / TestCase.php
index 6a8c2d732b65dc123de08569c6f4c2da7c2ac3bc..d3620eae0b9d1d985d8baaa988ca69c49c52a5f8 100644 (file)
@@ -66,6 +66,14 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
         return $this->actingAs($this->editor);
     }
 
+    /**
+     * Get a user that's not a system user such as the guest user.
+     */
+    public function getNormalUser()
+    {
+        return \BookStack\User::where('system_name', '=', null)->get()->last();
+    }
+
     /**
      * Quickly sets an array of settings.
      * @param $settingsArray