public function testCurlMainParameterUrlToCall_defaultSandboxMode_sandboxApiUrl() { $this->getConfig()->setConfigParam('blOEPayPalSandboxMode', true); $oService = new oePayPalService(); $oCurl = $oService->getCaller()->getCurl(); $this->assertEquals('https://api-3t.sandbox.paypal.com/nvp', $oCurl->getUrlToCall()); }
/** * oePayPalCaller setter getter test */ public function testGetCallerWithLogger_LoggingOn_loggerIsSet() { $this->getConfig()->setConfigParam('blPayPalLoggerEnabled', true); $oService = new oePayPalService(); $this->assertTrue($oService->getCaller() instanceof oePayPalCaller); $this->assertTrue($oService->getCaller()->getLogger() instanceof oePayPalLogger); }