CakeDC\Users\Test\TestCase\Model\Behavior\SocialBehaviorTest::providerFacebookSocialLogin PHP Method

providerFacebookSocialLogin() public method

Provider for socialLogin with facebook and not existing user
    public function providerFacebookSocialLogin()
    {
        return ['provider' => ['data' => ['id' => 'facebook-id', 'username' => null, 'full_name' => 'Full name', 'first_name' => 'First name', 'last_name' => 'Last name', 'email' => '[email protected]', 'raw' => ['id' => '10153521527396318', 'name' => 'Ful Name.', 'first_name' => 'First Name', 'last_name' => 'Last name', 'email' => '[email protected]', 'picture' => ['data' => ['url' => 'data-url']]], 'credentials' => ['token' => 'token', 'secret' => null, 'expires' => 1458423682], 'validated' => true, 'link' => 'facebook-link', 'provider' => 'Facebook'], 'options' => ['use_email' => true, 'validate_email' => true, 'token_expiration' => 3600], 'result' => ['first_name' => 'First name', 'last_name' => 'Last name', 'username' => 'username', 'email' => '[email protected]', 'password' => '$2y$10$oLPxCkKJ1TUCR6xJ1t0Wj.7Fznx49Wn4NZB2aJCmVvRMucaHuNyyO', 'avatar' => null, 'tos_date' => '2016-01-20 15:45:09', 'gender' => null, 'social_accounts' => [['provider' => 'Facebook', 'username' => null, 'reference' => '10153521527396318', 'avatar' => '', 'link' => 'facebook-link', 'description' => null, 'token' => 'token', 'token_secret' => null, 'token_expires' => '2016-03-19 21:41:22', 'data' => '-', 'active' => true]], 'activation_date' => '2016-01-20 15:45:09', 'active' => true]]];
    }