You are here

private function SiteDisclaimerWebTestCase::testXssString in Site Disclaimer 7

Same name and namespace in other branches
  1. 6 tests/site_disclaimer.test \SiteDisclaimerWebTestCase::testXssString()
1 call to SiteDisclaimerWebTestCase::testXssString()
SiteDisclaimerWebTestCase::setUp in tests/site_disclaimer.test
Sets up a Drupal site for running functional and integration tests.

File

tests/site_disclaimer.test, line 71
Site Disclaimer module functionality tests.

Class

SiteDisclaimerWebTestCase
Base class for all terms od use web test cases.

Code

private function testXssString() {
  return '<a href="/' . $this
    ->randomString() . '">' . $this
    ->randomString() . '</a><script>alert("' . $this
    ->randomString() . '");</script>';
}