Commit 9250bc3e authored by Kevin Paxman's avatar Kevin Paxman
Browse files

Merge branch 'feature/ISTWCMS-4960-lkmorlan-test-saving-form-access' into '3.0.x'

ISTWCMS-4960: Test that forms work after having saved their access settings

See merge request !177
parents 27e48325 f710195a
......@@ -255,6 +255,13 @@ class UwWcmsBasicTest extends BrowserTestBase {
// Test for existence Webform CAPTCHA component on newly-created Webform.
$this->assertFieldByXPath('//table[@id="edit-webform-ui-elements"]/tbody/tr[@data-webform-type="captcha"]', NULL, 'CAPTCHA component exists.');
// Save the access page. If a form is altered by unsetting parts of it
// instead of setting #access, empty access values will be saved leading to
// access issues later. Save the page here to verify that no access values
// get changed.
$edit = [];
$this->drupalPostForm('admin/structure/webform/manage/test_form/access', $edit, 'Save');
// The variable $test_paths stores Drupal paths and permission information.
// In this array, the keys are paths. If the value is TRUE, everyone has
// access. Otherwise, the value must be an array of roles that have access.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment