You are here

AdminMetaTagTest.php in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/modules/system/src/Tests/System/AdminMetaTagTest.php

File

core/modules/system/src/Tests/System/AdminMetaTagTest.php
View source
<?php

/**
 * @file
 * Contains \Drupal\system\Tests\System\AdminMetaTagTest.
 */
namespace Drupal\system\Tests\System;

use Drupal\simpletest\WebTestBase;

/**
 * Confirm that the fingerprinting meta tag appears as expected.
 *
 * @group system
 */
class AdminMetaTagTest extends WebTestBase {

  /**
   * Verify that the meta tag HTML is generated correctly.
   */
  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');
  }

}

Classes

Namesort descending Description
AdminMetaTagTest Confirm that the fingerprinting meta tag appears as expected.