You are here

public function ItCookieComplianceTestCase::testAfterCookie in IT Cookie Compliance 7

Tests that nothing is blocked after cookies have been accepted.

File

./it_cookie_compliance.test, line 63
IT Cookie Compliance module test file.

Class

ItCookieComplianceTestCase
Tests the functionality of the Simpletest example content type.

Code

public function testAfterCookie() {
  $this
    ->drupalGet('', array(), array(
    "Cookie: cookie-agreed=2",
  ));
  $this
    ->assertRaw('block-system-main', 'Checking if main block has not been removed with cookies accepted');
  $this
    ->assertRaw('jquery.once.js', 'Checking if jquery javascript has not been removed with cookies accepted');
}