You are here

protected function PathRedirectTestHelper::assertNoRedirect in Path redirect 6

1 call to PathRedirectTestHelper::assertNoRedirect()
PathRedirectUnitTest::testRedirectQuerySorting in ./path_redirect.test
Test the _path_redirect_uasort() callback used in path_redirect_load_by_source().

File

./path_redirect.test, line 47
Tests for the path_redirect module.

Class

PathRedirectTestHelper
@file Tests for the path_redirect module.

Code

protected function assertNoRedirect(array $redirect) {
  $redirect += array(
    'source_query' => array(),
  );
  $this
    ->drupalHead($redirect['source'], array(
    'query' => $redirect['source_query'],
  ));
  $this
    ->assertNoHeader('location', t('Not redirected from !request.', array(
    '!request' => $this
      ->getUrl(),
  )));
}