/** * Test case for oePayPalConfig::getEndPointUrl() * * @dataProvider providerGetApiUrl */ public function testApiUrl($bSandBoxEnabled, $sSandBoxApiUrl, $sApiUrl, $sResult) { $oConfig = new oePayPalConfig(); $this->getConfig()->setConfigParam('blOEPayPalSandboxMode', $bSandBoxEnabled); if (!empty($sSandBoxApiUrl)) { $oConfig->setPayPalSandboxApiUrl($sSandBoxApiUrl); } if (!empty($sApiUrl)) { $oConfig->setPayPalApiUrl($sApiUrl); } $this->assertEquals($sResult, $oConfig->getApiUrl()); }