private function SiteDisclaimerWebTestCase::testXssString in Site Disclaimer 6
Same name and namespace in other branches
- 7 tests/site_disclaimer.test \SiteDisclaimerWebTestCase::testXssString()
1 call to SiteDisclaimerWebTestCase::testXssString()
- SiteDisclaimerWebTestCase::setUp in tests/
site_disclaimer.test - Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
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>';
}