function BrowserTestBaseLegacyTest::testDrupalGetHeaders

Test ::drupalGetHeaders().

@expectedDeprecation Drupal\Tests\BrowserTestBase::drupalGetHeaders() is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use $this->getSession()->getResponseHeaders() instead. See https://www.drupal.org/node/3067207

File

core/tests/Drupal/FunctionalTests/BrowserTestBaseLegacyTest.php, line 20

Class

BrowserTestBaseLegacyTest
Tests BrowserTestBase legacy functionality.

Namespace

Drupal\FunctionalTests

Code

public function testDrupalGetHeaders() {
    $this->assertSame($this->getSession()
        ->getResponseHeaders(), $this->drupalGetHeaders());
}

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