Webiny\Component\Security\Tests\Authentication\Providers\OAuth2\OAuth2Test::testGetLoginObjectStep1Dot1 PHP Method

testGetLoginObjectStep1Dot1() public method

    public function testGetLoginObjectStep1Dot1()
    {
        Request::deleteInstance();
        Session::getInstance()->save('oauth_token', '123');
        $_GET['code'] = 'some code';
        $oauth2 = new OAuth2('Facebook', ['ROLE_ADMIN']);
        $oauth2->setExitTrigger(OAuth2::EXIT_TRIGGER_EXCEPTION);
        $oauth2->getLoginObject(new ConfigObject([]));
    }