Example #1
0
 /**
  * {@inheritdoc}
  */
 public function setRefererOrBaseUrl()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'setRefererOrBaseUrl');
     if (!$pluginInfo) {
         return parent::setRefererOrBaseUrl();
     } else {
         return $this->___callPlugins('setRefererOrBaseUrl', func_get_args(), $pluginInfo);
     }
 }
 public function testSetRefererOrBaseUrl()
 {
     $this->urlBuilder->expects($this->once())->method('getUrl')->willReturn($this->url);
     $this->redirect->expects($this->once())->method('getRedirectUrl')->with($this->url)->willReturn('test string');
     $this->action->setRefererOrBaseUrl();
 }