You are here

public function AdminMetaTagTestCase::testMetaTag in Drupal 7

Verify that the meta tag HTML is generated correctly.

File

modules/system/system.test, line 1022
Tests for system.module.

Class

AdminMetaTagTestCase

Code

public function testMetaTag() {
  list($version, ) = explode('.', VERSION);
  $string = '<meta name="Generator" content="Drupal ' . $version . ' (http://drupal.org)" />';
  $this
    ->drupalGet('node');
  $this
    ->assertRaw($string, 'Fingerprinting meta tag generated correctly.', 'System');
}