Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
WCMS
uw_base_profile
Commits
793cfa3c
Commit
793cfa3c
authored
Jun 23, 2021
by
Liam Morland
Browse files
ISTWCMS-4881: Test for CAPTCHA component in Webforms
parent
d0f2a780
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tests/src/Functional/UwWcmsBasicTest.php
tests/src/Functional/UwWcmsBasicTest.php
+3
-0
No files found.
tests/src/Functional/UwWcmsBasicTest.php
View file @
793cfa3c
...
...
@@ -249,6 +249,9 @@ class UwWcmsBasicTest extends BrowserTestBase {
];
$this
->
drupalPostForm
(
'admin/structure/webform/add'
,
$edit
,
'Save'
);
// 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.'
);
// 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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment