You are here

private function TOUWebTestCase::testString in Terms of Use 6

1 call to TOUWebTestCase::testString()
TOUWebTestCase::setUp in tests/terms_of_use.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/terms_of_use.test, line 38
Terms of use module functionality tests.

Class

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

Code

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