/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/LinkedInTest.php (2334B)
'test-token',
'expires' => 1490988496,
]);
$rawData = [
'token' => $token,
'emailAddress' => 'test@gmail.com',
'firstName' => 'Test',
'headline' => 'The best test user in the world.',
'id' => '1',
'industry' => 'Computer Software',
'lastName' => 'User',
'location' => [
'country' => [
'code' => 'es',
],
'name' => 'Spain',
],
'pictureUrl' => 'https://media.licdn.com/mpr/mprx/test.jpg',
'publicProfileUrl' => 'https://www.linkedin.com/in/test',
];
$providerMapper = new LinkedIn();
$user = $providerMapper($rawData);
$this->assertEquals([
'id' => '1',
'username' => null,
'full_name' => null,
'first_name' => 'Test',
'last_name' => 'User',
'email' => 'test@gmail.com',
'avatar' => 'https://media.licdn.com/mpr/mprx/test.jpg',
'gender' => null,
'link' => 'https://www.linkedin.com/in/test',
'bio' => 'The best test user in the world.',
'locale' => null,
'validated' => true,
'credentials' => [
'token' => 'test-token',
'secret' => null,
'expires' => 1490988496,
],
'raw' => $rawData,
], $user);
}
}