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

testSocialLoginCreateNewAccountWithNoCredentials() public method

Test socialLogin
    public function testSocialLoginCreateNewAccountWithNoCredentials()
    {
        $data = ['provider' => SocialAccountsTable::PROVIDER_TWITTER, 'email' => '[email protected]', 'id' => 'reference-not-existing', 'link' => 'link', 'raw' => ['id' => 'reference-not-existing', 'first_name' => 'Not existing user', 'gender' => 'male', 'user_email' => '[email protected]'], 'credentials' => [], 'name' => ''];
        $options = ['use_email' => 0, 'validate_email' => 1, 'token_expiration' => 3600];
        $result = $this->Users->socialLogin($data, $options);
        $this->assertFalse($result);
    }