3 namespace Drupal\Tests\system\Functional\Form;
5 use Drupal\Tests\BrowserTestBase;
8 * Tests the SystemConfigFormTestBase class.
12 class SystemConfigFormTest extends BrowserTestBase {
19 public static $modules = ['form_test'];
22 * Tests the SystemConfigFormTestBase class.
24 public function testSystemConfigForm() {
25 $this->drupalGet('form-test/system-config-form');
26 $element = $this->xpath('//div[@id = :id]/input[contains(@class, :class)]', [':id' => 'edit-actions', ':class' => 'button--primary']);
27 $this->assertTrue($element, 'The primary action submit button was found.');
28 $this->drupalPostForm(NULL, [], t('Save configuration'));
29 $this->assertText(t('The configuration options have been saved.'));