JavascriptDeprecationTest.php 687 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Drupal\FunctionalJavascriptTests;
  3. /**
  4. * Tests Javascript deprecation notices.
  5. *
  6. * @group javascript
  7. * @group legacy
  8. */
  9. class JavascriptDeprecationTest extends WebDriverTestBase {
  10. public static $modules = ['js_deprecation_test'];
  11. /**
  12. * @expectedDeprecation Javascript Deprecation: This function is deprecated for testing purposes.
  13. * @expectedDeprecation Javascript Deprecation: This property is deprecated for testing purposes.
  14. */
  15. public function testJavascriptDeprecation() {
  16. $this->drupalGet('js_deprecation_test');
  17. // Ensure that deprecation message from previous page loads will be
  18. // detected.
  19. $this->drupalGet('user');
  20. }
  21. }