You are here

protected function PathRedirectTestHelper::assertNoHeader in Path redirect 6

1 call to PathRedirectTestHelper::assertNoHeader()
PathRedirectTestHelper::assertNoRedirect in ./path_redirect.test

File

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

Class

PathRedirectTestHelper
@file Tests for the path_redirect module.

Code

protected function assertNoHeader($name, $message = '') {
  if (empty($message)) {
    $message = t('Header @header not found.', array(
      '@name' => $name,
    ));
  }
  $this
    ->assertIdentical($this
    ->drupalGetHeader(strtolower($name)), FALSE, $message);
}