X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Ftests%2Fsrc%2FFunctional%2FForm%2FSystemConfigFormTest.php;fp=web%2Fcore%2Fmodules%2Fsystem%2Ftests%2Fsrc%2FFunctional%2FForm%2FSystemConfigFormTest.php;h=09ad06ac8c265f2983095d5936d0467b264daad9;hp=0000000000000000000000000000000000000000;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/system/tests/src/Functional/Form/SystemConfigFormTest.php b/web/core/modules/system/tests/src/Functional/Form/SystemConfigFormTest.php new file mode 100644 index 000000000..09ad06ac8 --- /dev/null +++ b/web/core/modules/system/tests/src/Functional/Form/SystemConfigFormTest.php @@ -0,0 +1,32 @@ +drupalGet('form-test/system-config-form'); + $element = $this->xpath('//div[@id = :id]/input[contains(@class, :class)]', [':id' => 'edit-actions', ':class' => 'button--primary']); + $this->assertTrue($element, 'The primary action submit button was found.'); + $this->drupalPostForm(NULL, [], t('Save configuration')); + $this->assertText(t('The configuration options have been saved.')); + } + +}