]> BookStack Code Mirror - bookstack/blobdiff - tests/Auth/SocialAuthTest.php
Move logFailedAccess into Activity
[bookstack] / tests / Auth / SocialAuthTest.php
index 572c32f4620ff23756b0f61867ce13c15338f863..526c0e199a184cf7ee0a7f74c49fcea0bf42cbba 100644 (file)
@@ -148,4 +148,12 @@ class SocialAuthTest extends TestCase
         $this->assertDatabaseHas('social_accounts', ['user_id' => $user->id]);
     }
 
+    public function test_google_select_account_option_changes_redirect_url()
+    {
+        config()->set('services.google.select_account', 'true');
+
+        $resp = $this->get('/login/service/google');
+        $this->assertStringContainsString('prompt=select_account', $resp->headers->get('Location'));
+    }
+
 }