simpletest_phpunit_browsertest.php 547 B

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