function 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() {
  $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.
