Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_base_profile
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_base_profile
Commits
f710195a
Commit
f710195a
authored
3 years ago
by
Liam Morland
Committed by
Kevin Paxman
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-4960: Test that forms work after having saved their access settings
parent
27e48325
No related branches found
No related tags found
2 merge requests
!433
ISTWCMS-6296 Create test for all event dates test cases
,
!177
ISTWCMS-4960: Test that forms work after having saved their access settings
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/src/Functional/UwWcmsBasicTest.php
+7
-0
7 additions, 0 deletions
tests/src/Functional/UwWcmsBasicTest.php
with
7 additions
and
0 deletions
tests/src/Functional/UwWcmsBasicTest.php
+
7
−
0
View file @
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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment