]> BookStack Code Mirror - bookstack/blobdiff - tests/Uploads/AvatarTest.php
Added cache breaker to tinymce loading systems
[bookstack] / tests / Uploads / AvatarTest.php
index d10b5cfc6cb79f50556df9892a94edc97c5c0d82..650f5b4ea359ac5dd02929c9780cb67a13031157 100644 (file)
@@ -11,16 +11,16 @@ class AvatarTest extends TestCase
 {
     use UsesImages;
 
-    protected function createUserRequest($user)
+    protected function createUserRequest($user): User
     {
         $this->asAdmin()->post('/settings/users/create', [
             'name'             => $user->name,
             'email'            => $user->email,
-            'password'         => 'testing',
-            'password-confirm' => 'testing',
+            'password'         => 'testing101',
+            'password-confirm' => 'testing101',
         ]);
 
-        return User::where('email', '=', $user->email)->first();
+        return User::query()->where('email', '=', $user->email)->first();
     }
 
     protected function assertImageFetchFrom(string $url)