function SystemConfigFormTest::testSystemConfigForm in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/system/src/Tests/Form/SystemConfigFormTest.php \Drupal\system\Tests\Form\SystemConfigFormTest::testSystemConfigForm()
Tests the SystemConfigFormTestBase class.
File
- core/
modules/ system/ src/ Tests/ Form/ SystemConfigFormTest.php, line 29 - Contains \Drupal\system\Tests\Form\SystemConfigFormTest.
Class
- SystemConfigFormTest
- Tests the SystemConfigFormTestBase class.
Namespace
Drupal\system\Tests\FormCode
function testSystemConfigForm() {
$this
->drupalGet('form-test/system-config-form');
$element = $this
->xpath('//div[@id = :id]/input[contains(@class, :class)]', array(
':id' => 'edit-actions',
':class' => 'button--primary',
));
$this
->assertTrue($element, 'The primary action submit button was found.');
$this
->drupalPostForm(NULL, array(), t('Save configuration'));
$this
->assertText(t('The configuration options have been saved.'));
}