Payum\Paypal\ExpressCheckout\Nvp\Tests\ApiTest::shouldUseRealApiEndpointIfSandboxFalse PHP Method

shouldUseRealApiEndpointIfSandboxFalse() public method

    public function shouldUseRealApiEndpointIfSandboxFalse()
    {
        $testCase = $this;
        $clientMock = $this->createHttpClientMock();
        $clientMock->expects($this->once())->method('send')->will($this->returnCallback(function (RequestInterface $request) use($testCase) {
            $testCase->assertEquals('https://api-3t.paypal.com/nvp', $request->getUri());
            return new Response(200, [], $request->getBody());
        }));
        $api = new Api(array('username' => 'a_username', 'password' => 'a_password', 'signature' => 'a_signature', 'sandbox' => false, 'return_url' => 'optionReturnUrl', 'cancel_url' => 'optionCancelUrl'), $clientMock, $this->createHttpMessageFactory());
        $api->setExpressCheckout(array());
    }