/**
  * Test case for oePayPalConfig::getUrl()
  *
  * @dataProvider providerGetPayPalCommunicationUrl
  */
 public function testGetPayPalCommunicationUrl($bSandBoxEnabled, $sSandBoxApiUrl, $sApiUrl, $sToken, $sUserAction, $sResult)
 {
     $oConfig = new oePayPalConfig();
     $this->getConfig()->setConfigParam('blOEPayPalSandboxMode', $bSandBoxEnabled);
     if (!empty($sSandBoxApiUrl)) {
         $oConfig->setPayPalSandboxUrl($sSandBoxApiUrl);
     }
     if (!empty($sApiUrl)) {
         $oConfig->setPayPalUrl($sApiUrl);
     }
     $this->assertEquals($sResult, $oConfig->getPayPalCommunicationUrl($sToken, $sUserAction));
 }