function SimpletestPhpunitBrowserTest::testOutput

Dummy test that logs the visited front page for HTML output.

File

core/modules/simpletest/tests/fixtures/simpletest_phpunit_browsertest.php, line 21

Class

SimpletestPhpunitBrowserTest
A PHPUnit-based browser test that will be run from Simpletest.

Namespace

Drupal\Tests\simpletest\Functional

Code

public function testOutput() {
    $this->drupalGet('<front>');
    $this->assertSession()
        ->responseContains('<h2>TEST escaping</h2>');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.