protected function RedirectTestHelper::assertNoRedirect in Redirect 7
Same name and namespace in other branches
- 7.2 redirect.test \RedirectTestHelper::assertNoRedirect()
2 calls to RedirectTestHelper::assertNoRedirect()
File
- ./
redirect.test, line 26 - Unit tests for the redirect module.
Class
- RedirectTestHelper
- @file Unit tests for the redirect module.
Code
protected function assertNoRedirect($redirect) {
$source_url = url($redirect->source, array(
'absolute' => TRUE,
) + $redirect->source_options);
$this
->drupalGet($source_url);
$this
->assertEqual($this
->getUrl(), $source_url, t('Page %url was not redirected.', array(
'%url' => $source_url,
)));
}