Payum\Klarna\Checkout\Tests\Action\AuthorizeActionTest::shouldUseTargetUrlFromRequestTokenAsConfirmationIfNotSet PHP Method

shouldUseTargetUrlFromRequestTokenAsConfirmationIfNotSet() public method

    public function shouldUseTargetUrlFromRequestTokenAsConfirmationIfNotSet()
    {
        $config = new Config();
        $action = new AuthorizeAction('aTemplate');
        $action->setGateway($this->createGatewayMock());
        $action->setApi($config);
        $token = new Token();
        $token->setTargetUrl('theTargetUrl');
        $authorize = new Authorize($token);
        $authorize->setModel(['location' => 'aLocation', 'merchant' => ['terms_uri' => 'theTermsUri', 'checkout_uri' => 'theCheckoutUri', 'push_uri' => 'thePushUri']]);
        $action->execute($authorize);
    }