You are here

public function BrowserTestBaseTest::testDebug in Drupal 9

Tests legacy debug().

@group legacy

File

core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php, line 965

Class

BrowserTestBaseTest
Tests BrowserTestBase functionality.

Namespace

Drupal\FunctionalTests

Code

public function testDebug() {
  $this
    ->expectDeprecation('debug() is deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Use dump() instead. See https://www.drupal.org/node/3192283');
  $this
    ->expectError();
  debug("There's a star man waiting in the sky");
}