예제 #1
0
 public function testSetGotoUrlWithHttpCodeUsingCodeProperty()
 {
     $this->redirector->setCode(301);
     $this->redirector->setGotoUrl('/foo/bar');
     $this->assertEquals('/foo/bar', $this->redirector->getRedirectUrl());
     $this->assertEquals(301, $this->response->getHttpResponseCode());
 }
예제 #2
0
 protected function _redirectToPermanentAndExit($action, $message = null, $controller = null, $module = null, $params = array())
 {
     $this->_redirector->setCode(301);
     $this->performRedirect($action, $message, $controller, $module, $params, true);
 }