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

shouldSubExecuteSyncIfModelHasLocationSet() public method

    public function shouldSubExecuteSyncIfModelHasLocationSet()
    {
        $gatewayMock = $this->createGatewayMock();
        $gatewayMock->expects($this->at(0))->method('execute')->with($this->isInstanceOf(Sync::class));
        $gatewayMock->expects($this->at(1))->method('execute')->with($this->isInstanceOf(RenderTemplate::class));
        $action = new AuthorizeAction('aTemplate');
        $action->setGateway($gatewayMock);
        $action->setApi(new Config());
        $action->execute(new Authorize(array('status' => Constants::STATUS_CHECKOUT_INCOMPLETE, 'location' => 'aLocation', 'merchant' => ['confirmation_uri' => 'theConfirmationUri', 'push_uri' => 'thePushUri', 'checkout_uri' => 'theCheckoutUri', 'terms_uri' => 'theTermsUri'])));
    }