/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakedc/auth/tests/TestCase/Social/Mapper
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakedc/auth/tests/TestCase/Social/Mapper/GoogleTest.php (2186B)
'test-token',
'expires' => 1490988496,
]);
$rawData = [
'token' => $token,
'email' => 'test@gmail.com',
'sub' => '1',
'name' => 'Test User',
'family_name' => 'User',
'given_name' => 'Test',
'aboutMe' => '
I am the best test user in the world.',
'profile' => 'https://plus.google.com/+TestUser',
'picture' => 'https://lh3.googleusercontent.com/photo.jpg',
];
$providerMapper = new Google();
$user = $providerMapper($rawData);
$this->assertEquals([
'id' => '1',
'username' => null,
'full_name' => 'Test User',
'first_name' => 'Test',
'last_name' => 'User',
'email' => 'test@gmail.com',
'avatar' => 'https://lh3.googleusercontent.com/photo.jpg',
'gender' => null,
'link' => 'https://plus.google.com/+TestUser',
'bio' => '
I am the best test user in the world.',
'locale' => null,
'validated' => true,
'credentials' => [
'token' => 'test-token',
'secret' => null,
'expires' => 1490988496,
],
'raw' => $rawData,
], $user);
}
}