]> BookStack Code Mirror - bookstack/blobdiff - tests/SharedTestHelpers.php
Added front-end toggle and testing of inline attachments
[bookstack] / tests / SharedTestHelpers.php
index 78c1f3b1825121a9c2a8ece027e29fe2fd087f3d..a98f01e94e553f2f7bec643e1c736cd79e749b03 100644 (file)
@@ -82,6 +82,14 @@ trait SharedTestHelpers
         return $user;
     }
 
+    /**
+     * Get a user that's not a system user such as the guest user.
+     */
+    public function getNormalUser()
+    {
+        return User::query()->where('system_name', '=', null)->get()->last();
+    }
+
     /**
      * Regenerate the permission for an entity.
      */