function ConfigExampleTest::doTestMainPage
Test the main page.
1 call to ConfigExampleTest::doTestMainPage()
- ConfigExampleTest::testFunctional in modules/
config_simple_example/ tests/ src/ Functional/ ConfigExampleTest.php - Aggregate all the tests.
File
-
modules/
config_simple_example/ tests/ src/ Functional/ ConfigExampleTest.php, line 94
Class
- ConfigExampleTest
- Ensure that the form_api_example forms work properly.
Namespace
Drupal\Tests\form_api_example\FunctionalCode
public function doTestMainPage() {
$assert = $this->assertSession();
$example_page = Url::fromRoute('config_simple_example.description');
$this->drupalGet($example_page);
$assert->pageTextContains('The Config Simple Example module defines a simple translatable config form.');
$assert->linkExists('Config Simple Form');
}