You are here

protected function WebformAssertLegacyTrait::assertHeader in Webform 6.x

Same name and namespace in other branches
  1. 8.5 tests/src/Traits/WebformAssertLegacyTrait.php \Drupal\Tests\webform\Traits\WebformAssertLegacyTrait::assertHeader()

Checks that current response header equals value.

Parameters

string $name: Name of header to assert.

string $value: Value of the header to assert.

File

tests/src/Traits/WebformAssertLegacyTrait.php, line 668

Class

WebformAssertLegacyTrait
Provides convenience methods for assertions in browser tests.

Namespace

Drupal\Tests\webform\Traits

Code

protected function assertHeader($name, $value) {
  $this
    ->assertSession()
    ->responseHeaderEquals($name, $value);
}