added socialite provider for the user

This commit is contained in:
Milos Holba
2021-12-20 15:15:05 +01:00
parent f37c4f62b7
commit 22ae148a22
13 changed files with 280 additions and 88 deletions

View File

@@ -32,6 +32,21 @@ class UserAccountTest extends TestCase
Storage::disk('local')
->assertExists('files/' . User::first()->id);
}
/**
* @test
*/
public function it_socialite_redirect()
{
$response = $this->call('GET', 'api/socialite/google/redirect');
$this->assertStringContainsString('accounts.google.com/o/oauth2/auth', $response['url']);
}
/**
* @test
*/
public function it_socialite_callback()
{
}
/**
* todo: finish test
*/
@@ -146,6 +161,7 @@ class UserAccountTest extends TestCase
'email' => $user->email,
'role' => $user->role,
'two_factor_authentication' => false,
'socialite_account' => false,
'folders' => [],
'storage' => [
'used' => 0,