simpletest_phpunit_browsertest.php 568 B

1234567891011121314151617181920212223242526
  1. <?php
  2. // phpcs:ignoreFile
  3. namespace Drupal\Tests\simpletest\Functional;
  4. use Drupal\Tests\BrowserTestBase;
  5. /**
  6. * A PHPUnit-based browser test that will be run from Simpletest.
  7. *
  8. * To avoid accidentally running it is not in a normal PSR-4 directory.
  9. *
  10. * @group simpletest
  11. */
  12. class SimpletestPhpunitBrowserTest extends BrowserTestBase {
  13. /**
  14. * Dummy test that logs the visited front page for HTML output.
  15. */
  16. public function testOutput() {
  17. $this->drupalGet('<front>');
  18. $this->assertSession()->responseContains('<h2>TEST escaping</h2>');
  19. }
  20. }