public function AdminMetaTagTest::testMetaTag

Verify that the meta tag HTML is generated correctly.

File

drupal/core/modules/system/lib/Drupal/system/Tests/System/AdminMetaTagTest.php, line 27
Definition of Drupal\system\Tests\System\AdminMetaTagTest.

Class

AdminMetaTagTest

Namespace

Drupal\system\Tests\System

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.', t('System'));
}