public function testSetGotoUrlWithBaseUrlUsingPrependBaseOption() { $this->request->setBaseUrl('/my'); $this->redirector->setGotoUrl('/foo/bar', array('prependBase' => true)); $this->assertEquals('/my/foo/bar', $this->redirector->getRedirectUrl()); }
public function testSetBaseUrl() { $this->_request->setBaseUrl('/news'); $this->assertEquals('/news', $this->_request->getBaseUrl()); }