You are here

public function AdminMetaTagTest::testMetaTag in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/System/AdminMetaTagTest.php \Drupal\system\Tests\System\AdminMetaTagTest::testMetaTag()

Verify that the meta tag HTML is generated correctly.

File

core/modules/system/src/Tests/System/AdminMetaTagTest.php, line 21
Contains \Drupal\system\Tests\System\AdminMetaTagTest.

Class

AdminMetaTagTest
Confirm that the fingerprinting meta tag appears as expected.

Namespace

Drupal\system\Tests\System

Code

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