CakeDC\Users\Test\TestCase\Model\Table\UsersTableTest::testSocialLogin PHP Method

testSocialLogin() public method

public testSocialLogin ( )
    public function testSocialLogin()
    {
        $data = ['provider' => SocialAccountsTable::PROVIDER_FACEBOOK, 'email' => '[email protected]', 'id' => 'reference-2-1', 'link' => 'link', 'raw' => ['id' => 'reference-2-1', 'token' => 'token', 'first_name' => 'User 2', 'gender' => 'female', 'verified' => 1, 'user_email' => '[email protected]', 'link' => 'link']];
        $options = ['use_email' => 1, 'validate_email' => 1, 'token_expiration' => 3600];
        $result = $this->Users->socialLogin($data, $options);
        $this->assertEquals('[email protected]', $result->email);
        $this->assertTrue($result->active);
    }