X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/7b6c88f17c595f3b0d88fe383827794b83dba3e7..refs/pull/236/head:/tests/TestCase.php diff --git a/tests/TestCase.php b/tests/TestCase.php index 6a8c2d732..d3620eae0 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -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