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
53b2eb38
Commit
53b2eb38
authored
3 years ago
by
Liam Morland
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-4881: Test for Honeypot element
parent
50b6611a
No related branches found
Branches containing commit
No related tags found
2 merge requests
!433
ISTWCMS-6296 Create test for all event dates test cases
,
!165
ISTWCMS-4881: Test Webform anti-spam
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/src/Functional/UwWcmsBasicTest.php
+5
-0
5 additions, 0 deletions
tests/src/Functional/UwWcmsBasicTest.php
with
5 additions
and
0 deletions
tests/src/Functional/UwWcmsBasicTest.php
+
5
−
0
View file @
53b2eb38
...
@@ -313,6 +313,11 @@ class UwWcmsBasicTest extends BrowserTestBase {
...
@@ -313,6 +313,11 @@ class UwWcmsBasicTest extends BrowserTestBase {
$this_code
=
$this
->
getSession
()
->
getStatusCode
();
$this_code
=
$this
->
getSession
()
->
getStatusCode
();
$message
=
sprintf
(
'Response status code for %s on path %s is %d; %d expected.'
,
$role
,
$path
,
$this_code
,
$expected_code
);
$message
=
sprintf
(
'Response status code for %s on path %s is %d; %d expected.'
,
$role
,
$path
,
$this_code
,
$expected_code
);
$this
->
assert
(
intval
(
$this_code
)
===
$expected_code
,
$message
);
$this
->
assert
(
intval
(
$this_code
)
===
$expected_code
,
$message
);
if
(
$path
===
'form/test-form'
&&
!
$this
->
loggedInUser
)
{
// Test for Honeypot element.
$this
->
assertRaw
(
'Leave this field blank'
);
}
}
}
}
}
}
}
...
...
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