mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-02 23:56:56 +08:00
Added google select_account test
Also cleaned the function naming a little to be more descriptive of the work they do.
This commit is contained in:
@ -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->assertContains('prompt=select_account', $resp->headers->get('Location'));
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user