protected function PathRedirectTestHelper::assertHeader in Path redirect 6
File
- ./
path_redirect.test, line 15 - Tests for the path_redirect module.
Class
- PathRedirectTestHelper
- @file Tests for the path_redirect module.
Code
protected function assertHeader($name, $expected, $message = '') {
$value = $this
->drupalGetHeader(strtolower($name));
if (empty($message)) {
$message = t('Header @header identical to %value, expected %expected.', array(
'@name' => $name,
'%value' => $value,
'%expected' => $expected,
));
}
$this
->assertIdentical($expected, $value, $message);
}