function 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\FunctionalTests

Code

public function testResponseHeaderDoesNotExist() {
    $this->drupalGet('test-pipe-char');
    $this->assertSession()
        ->responseHeaderDoesNotExist('Foo-Bar');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.