]> BookStack Code Mirror - bookstack/blobdiff - tests/Auth/LdapTest.php
Page Attachments - Improved UI, Now initially complete
[bookstack] / tests / Auth / LdapTest.php
index 76fbc662ab89fab61bc50b6e8c79aa8e8d421b68..9573321fba98e5c3bb6fbf06630ddafbfb5a0221 100644 (file)
@@ -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');
     }