JavascriptDeprecationTest.php
Same filename in other branches
Namespace
Drupal\FunctionalJavascriptTestsFile
-
core/
tests/ Drupal/ FunctionalJavascriptTests/ JavascriptDeprecationTest.php
View source
<?php
namespace Drupal\FunctionalJavascriptTests;
/**
* Tests Javascript deprecation notices.
*
* @group javascript
* @group legacy
*/
class JavascriptDeprecationTest extends WebDriverTestBase {
public static $modules = [
'js_deprecation_test',
];
/**
* @expectedDeprecation Javascript Deprecation: This function is deprecated for testing purposes.
* @expectedDeprecation Javascript Deprecation: This property is deprecated for testing purposes.
*/
public function testJavascriptDeprecation() {
$this->drupalGet('js_deprecation_test');
// Ensure that deprecation message from previous page loads will be
// detected.
$this->drupalGet('user');
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
JavascriptDeprecationTest | Tests Javascript deprecation notices. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.