X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/ffcc0589272d081521068f255d533a8ed25ac445..refs/pull/255/head:/tests/Auth/LdapTest.php diff --git a/tests/Auth/LdapTest.php b/tests/Auth/LdapTest.php index 76fbc662a..9573321fb 100644 --- a/tests/Auth/LdapTest.php +++ b/tests/Auth/LdapTest.php @@ -108,7 +108,7 @@ class LdapTest extends \TestCase public function test_user_edit_form() { - $editUser = User::all()->last(); + $editUser = $this->getNormalUser(); $this->asAdmin()->visit('/settings/users/' . $editUser->id) ->see('Edit User') ->dontSee('Password') @@ -126,7 +126,7 @@ class LdapTest extends \TestCase public function test_non_admins_cannot_change_auth_id() { - $testUser = User::all()->last(); + $testUser = $this->getNormalUser(); $this->actingAs($testUser)->visit('/settings/users/' . $testUser->id) ->dontSee('External Authentication'); }