1 redirect.test protected RedirectTestHelper::assertHeader($name, $expected, $headers = NULL)

File

core/modules/redirect/tests/redirect.test, line 90
Unit tests for the redirect module.

Class

RedirectTestHelper

Code

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