function SimpleTestBrowserTestCase::testCookieDoesNotBleed
Tests that the cookies from a previous test do not bleed into a new test.
See also
SimpleTestBrowserTestCase::testCookies().
File
-
modules/
simpletest/ simpletest.test, line 449
Class
- SimpleTestBrowserTestCase
- Test internal testing framework browser.
Code
public function testCookieDoesNotBleed() {
// In order for this test to be effective it should always run after the
// testCookies() test.
$this->assertTrue(self::$cookieSet, 'Tests have been executed in the expected order.');
$this->assertEqual(count($this->cookies), 0, 'No cookies are present at the start of a new test.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.