/** * Test if return what is set in setter. * Test ir return default value if not set in setter. * * @dataProvider providerGetPayPalHost */ public function testGetHost($bSandboxEnabled, $sPayPalSandboxHost, $sPayPalHost, $sResult) { $oConfig = new oePayPalConfig(); $this->getConfig()->setConfigParam('blOEPayPalSandboxMode', $bSandboxEnabled); if (!empty($sPayPalSandboxHost)) { $oConfig->setPayPalSandboxHost($sPayPalSandboxHost); } if (!empty($sPayPalHost)) { $oConfig->setPayPalHost($sPayPalHost); } $this->assertEquals($sResult, $oConfig->getHost()); }