You are here

function RemoveGeneratorTestCase::testRemoveGenerator in Remove Generator META tag 7

File

./remove_generator.test, line 27
Tests for Remove Generator.

Class

RemoveGeneratorTestCase
Functional tests for the Generator META tag.

Code

function testRemoveGenerator() {
  $this
    ->drupalGet('<front>');
  $this
    ->assertPattern('|Generator|', 'The Generator META tag is present.');
  module_enable(array(
    'remove_generator',
  ));
  $this
    ->drupalGet('<front>');
  $this
    ->assertNoPattern('|Generator|', 'This Generator META tag has been removed.');
}