You are here

protected function RedirectTestHelper::assertNoRedirect in Redirect 7

Same name and namespace in other branches
  1. 7.2 redirect.test \RedirectTestHelper::assertNoRedirect()
2 calls to RedirectTestHelper::assertNoRedirect()
RedirectFunctionalTest::testDisableEnableRedirect in ./redirect.test
RedirectFunctionalTest::testPageCache in ./redirect.test

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,
  )));
}