public function ItCookieComplianceTestCase::testBlockBlocking in IT Cookie Compliance 7
Tests whether blocks are been blocked correctly.
File
- ./
it_cookie_compliance.test, line 52 - IT Cookie Compliance module test file.
Class
- ItCookieComplianceTestCase
- Tests the functionality of the Simpletest example content type.
Code
public function testBlockBlocking() {
$this
->drupalGet('');
$this
->assertNoRaw('block-system-main', 'Checking if main block has been removed');
variable_set('it_cookie_compliance_blocks', '');
$this
->drupalGet('');
$this
->assertRaw('block-system-main', 'Checking if main block has not been removed when option is not set');
}