BrowserTestBaseLegacyTest.php 681 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Drupal\FunctionalTests;
  3. use Drupal\Tests\BrowserTestBase;
  4. /**
  5. * Tests BrowserTestBase legacy functionality.
  6. *
  7. * @group browsertestbase
  8. * @group legacy
  9. */
  10. class BrowserTestBaseLegacyTest extends BrowserTestBase {
  11. /**
  12. * Test ::drupalGetHeaders().
  13. *
  14. * @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
  15. */
  16. public function testDrupalGetHeaders() {
  17. $this->assertSame(
  18. $this->getSession()->getResponseHeaders(),
  19. $this->drupalGetHeaders()
  20. );
  21. }
  22. }