public function testGetCurrentUrl() { $this->model->load('admin'); $this->model->expects($this->any())->method('getUrl')->will($this->returnValue('http://localhost/index.php')); $this->assertStringEndsWith('default', $this->model->getCurrentUrl()); $this->assertStringEndsNotWith('default', $this->model->getCurrentUrl(false)); }
/** * {@inheritdoc} */ public function getCurrentUrl($fromStore = true) { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getCurrentUrl'); if (!$pluginInfo) { return parent::getCurrentUrl($fromStore); } else { return $this->___callPlugins('getCurrentUrl', func_get_args(), $pluginInfo); } }