/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/TwitterTest.php (2062B)
'1',
'nickname' => 'test',
'name' => 'Test User',
'firstName' => null,
'lastName' => null,
'email' => null,
'location' => '',
'description' => '',
'imageUrl' => 'http://pbs.twimg.com/profile_images/test.jpeg',
'urls' => [],
'extra' => [],
'token' => [
'accessToken' => 'test-token',
'tokenSecret' => 'test-secret',
],
];
$providerMapper = new Twitter();
$user = $providerMapper($rawData);
$this->assertEquals([
'id' => '1',
'username' => 'test',
'full_name' => 'Test User',
'first_name' => null,
'last_name' => null,
'email' => null,
'avatar' => 'http://pbs.twimg.com/profile_images/test.jpeg',
'gender' => null,
'link' => 'https://twitter.com/test',
'bio' => '',
'locale' => null,
'validated' => false,
'credentials' => [
'token' => 'test-token',
'secret' => 'test-secret',
'expires' => null,
],
'raw' => $rawData,
], $user);
}
}