JavascriptDeprecationTest.php in Drupal 10
File
core/tests/Drupal/FunctionalJavascriptTests/JavascriptDeprecationTest.php
View source
<?php
namespace Drupal\FunctionalJavascriptTests;
class JavascriptDeprecationTest extends WebDriverTestBase {
protected static $modules = [
'js_deprecation_test',
];
protected $defaultTheme = 'stark';
public function testJavascriptDeprecation() {
$this
->expectDeprecation('Javascript Deprecation: This function is deprecated for testing purposes.');
$this
->expectDeprecation('Javascript Deprecation: This property is deprecated for testing purposes.');
$this
->drupalGet('js_deprecation_test');
$this
->drupalGet('user');
}
}