Omnipay\PayPal\Message\ExpressAuthorizeRequestTest::testBadCallbackConfiguration PHP Метод

testBadCallbackConfiguration() публичный Метод

    public function testBadCallbackConfiguration()
    {
        $baseData = array('amount' => '10.00', 'currency' => 'AUD', 'transactionId' => '111', 'description' => 'Order Description', 'returnUrl' => 'https://www.example.com/return', 'cancelUrl' => 'https://www.example.com/cancel', 'subject' => '[email protected]', 'headerImageUrl' => 'https://www.example.com/header.jpg', 'allowNote' => 0, 'addressOverride' => 0, 'brandName' => 'Dunder Mifflin Paper Company, Incy.');
        $this->request->initialize(array_merge($baseData, array('callback' => 'https://www.example.com/calculate-shipping')));
        // from the docblock on this exception -
        // Thrown when a request is invalid or missing required fields.
        // callback has been set but no shipping options so expect one of these:
        $this->setExpectedException('\\Omnipay\\Common\\Exception\\InvalidRequestException');
        $this->request->getData();
    }