You are here

public function JavascriptDeprecationTest::testJavascriptDeprecation in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/FunctionalJavascriptTests/JavascriptDeprecationTest.php \Drupal\FunctionalJavascriptTests\JavascriptDeprecationTest::testJavascriptDeprecation()
  2. 10 core/tests/Drupal/FunctionalJavascriptTests/JavascriptDeprecationTest.php \Drupal\FunctionalJavascriptTests\JavascriptDeprecationTest::testJavascriptDeprecation()

@expectedDeprecation Javascript Deprecation: This function is deprecated for testing purposes. @expectedDeprecation Javascript Deprecation: This property is deprecated for testing purposes.

File

core/tests/Drupal/FunctionalJavascriptTests/JavascriptDeprecationTest.php, line 19

Class

JavascriptDeprecationTest
Tests Javascript deprecation notices.

Namespace

Drupal\FunctionalJavascriptTests

Code

public function testJavascriptDeprecation() {
  $this
    ->drupalGet('js_deprecation_test');

  // Ensure that deprecation message from previous page loads will be
  // detected.
  $this
    ->drupalGet('user');
}