/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakedc/auth/tests/TestCase/Social/Mapper
NameSizeModeActions
CognitoTest.php26370644editdlrm
FacebookTest.php29460644editdlrm
GoogleTest.php21860644editdlrm
InstagramTest.php21050644editdlrm
LinkedInTest.php23340644editdlrm
TwitterTest.php20620644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakedc/auth/tests/TestCase/Social/Mapper/FacebookTest.php (2946B)
'test-token', 'expires' => 1490988496, ]); $rawData = [ 'token' => $token, 'id' => '1', 'name' => 'Test User', 'first_name' => 'Test', 'last_name' => 'User', 'email' => 'test@gmail.com', 'hometown' => [ 'id' => '108226049197930', 'name' => 'Madrid', ], 'picture' => [ 'data' => [ 'url' => 'https://scontent.xx.fbcdn.net/v/test.jpg', 'is_silhouette' => false, ], ], 'cover' => [ 'source' => 'https://scontent.xx.fbcdn.net/v/test.jpg', 'id' => '1', ], 'gender' => 'male', 'locale' => 'en_US', 'link' => 'https://www.facebook.com/app_scoped_user_id/1/', 'timezone' => -5, 'age_range' => [ 'min' => 21, ], 'bio' => 'I am the best test user in the world.', 'picture_url' => 'https://scontent.xx.fbcdn.net/v/test.jpg', 'is_silhouette' => false, 'cover_photo_url' => 'https://scontent.xx.fbcdn.net/v/test.jpg', ]; $providerMapper = new Facebook(); $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://graph.facebook.com/1/picture?type=large', 'gender' => 'male', 'link' => 'https://www.facebook.com/app_scoped_user_id/1/', 'bio' => 'I am the best test user in the world.', 'locale' => 'en_US', 'validated' => true, 'credentials' => [ 'token' => 'test-token', 'secret' => null, 'expires' => 1490988496, ], 'raw' => $rawData, ], $user); } }