function SystemConfigFormTest::testSystemConfigForm
Same name in other branches
- 9 core/modules/system/tests/src/Functional/Form/SystemConfigFormTest.php \Drupal\Tests\system\Functional\Form\SystemConfigFormTest::testSystemConfigForm()
- 8.9.x core/modules/system/tests/src/Functional/Form/SystemConfigFormTest.php \Drupal\Tests\system\Functional\Form\SystemConfigFormTest::testSystemConfigForm()
- 11.x core/modules/system/tests/src/Functional/Form/SystemConfigFormTest.php \Drupal\Tests\system\Functional\Form\SystemConfigFormTest::testSystemConfigForm()
Tests the SystemConfigFormTestBase class.
File
-
core/
modules/ system/ tests/ src/ Functional/ Form/ SystemConfigFormTest.php, line 29
Class
- SystemConfigFormTest
- Tests the SystemConfigFormTestBase class.
Namespace
Drupal\Tests\system\Functional\FormCode
public function testSystemConfigForm() : void {
$this->drupalGet('form-test/system-config-form');
// Verify the primary action submit button is found.
$this->assertSession()
->elementExists('xpath', "//div[@id = 'edit-actions']/input[contains(@class, 'button--primary')]");
$this->submitForm([], 'Save configuration');
$this->assertSession()
->pageTextContains('The configuration options have been saved.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.