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:
Dan Brown
2018-11-10 14:52:43 +00:00
parent 4be0c567cc
commit 178b5af83a
3 changed files with 19 additions and 8 deletions

View 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->assertContains('prompt=select_account', $resp->headers->get('Location'));
}
}