]> BookStack Code Mirror - bookstack/blobdiff - tests/Auth/AuthTest.php
Page Attachments - Improved UI, Now initially complete
[bookstack] / tests / Auth / AuthTest.php
index 0affff799919c1e894f0c15dc9fe8254b7b1676c..08d5ef8adb296eaea113da265d7afe2339a4d716 100644 (file)
@@ -146,7 +146,7 @@ class AuthTest extends TestCase
 
     public function test_user_updating()
     {
-        $user = \BookStack\User::all()->last();
+        $user = $this->getNormalUser();
         $password = $user->password;
         $this->asAdmin()
             ->visit('/settings/users')
@@ -162,7 +162,7 @@ class AuthTest extends TestCase
 
     public function test_user_password_update()
     {
-        $user = \BookStack\User::all()->last();
+        $user = $this->getNormalUser();
         $userProfilePage = '/settings/users/' . $user->id;
         $this->asAdmin()
             ->visit($userProfilePage)