예제 #1
0
 /**
  * Checks if method returns current URL
  */
 public function testGetCurrentUrl()
 {
     $sCurrentUrl = 'http://oxideshop.com/test';
     $oUtilsUrl = $this->getMock('oxUtilsUrl', array('getCurrentUrl'));
     $oUtilsUrl->expects($this->any())->method('getCurrentUrl')->will($this->returnValue($sCurrentUrl));
     oxRegistry::set('oxUtilsUrl', $oUtilsUrl);
     $oConfig = new oePayPalConfig();
     $this->assertEquals($sCurrentUrl, $oConfig->getCurrentUrl());
 }