public function BrowserTestBaseTest::testResponseHeaderDoesNotExist in Drupal 9
Same name and namespace in other branches
- 10 core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php \Drupal\FunctionalTests\BrowserTestBaseTest::testResponseHeaderDoesNotExist()
Tests responseHeaderDoesNotExist() functionality.
See also
\Drupal\Tests\WebAssert::responseHeaderDoesNotExist()
File
- core/
tests/ Drupal/ FunctionalTests/ BrowserTestBaseTest.php, line 243
Class
- BrowserTestBaseTest
- Tests BrowserTestBase functionality.
Namespace
Drupal\FunctionalTestsCode
public function testResponseHeaderDoesNotExist() {
$this
->drupalGet('test-pipe-char');
$this
->assertSession()
->responseHeaderDoesNotExist('Foo-Bar');
}