Skip to content
Snippets Groups Projects
Commit 53b2eb38 authored by Liam Morland's avatar Liam Morland
Browse files

ISTWCMS-4881: Test for Honeypot element

parent 50b6611a
No related branches found
No related tags found
2 merge requests!433ISTWCMS-6296 Create test for all event dates test cases,!165ISTWCMS-4881: Test Webform anti-spam
...@@ -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');
}
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment