You are here

protected function RedirectTestHelper::assertHeader in Redirect 7

Same name and namespace in other branches
  1. 7.2 redirect.test \RedirectTestHelper::assertHeader()
1 call to RedirectTestHelper::assertHeader()
RedirectFunctionalTest::testPageCache in ./redirect.test

File

./redirect.test, line 77
Unit tests for the redirect module.

Class

RedirectTestHelper
@file Unit tests for the redirect module.

Code

protected function assertHeader($name, $expected, $headers = NULL) {
  if (!isset($headers)) {
    $headers = $this
      ->drupalGetHeaders();
    $name = strtolower($name);
  }
  return $this
    ->assertIdentical($headers[$name], $expected);
}