Hi Alwin,

I have been reading your post which is really helpful so thanks a lot for
it. Really appreciate it. However after following your suggestion still i´m
having redirection assertion failure.



I´m having an issue with redirection to main page of application

In fact using telnet i get in response headers:

Location: /myapplication/public


Controller Action code is as follow:

public function logoutAction()
{
  return $this->_helper->redirector('index', 'index', null, array());
}


My redirection in phpunit test is as follow:

$this->dispatch('/login/logout'):
$this->assertRedirect();
$this->assertRedirectTo('/public/index');


I was wonderign if you can give me a tip of how you manage to check string
comparation so i can do the same to cehck whcih will be the right string to
match with the expected "Location" Header on the HTTP response. I mean: 
Location: /myapplication/public

Thanks in advance

kind regards



--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Zend-Test-failing-on-AssertRedirectTo-tp3325845p4655161.html
Sent from the Zend Framework mailing list archive at Nabble.com.

--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to