Version 1
[yaffs-website] / web / core / modules / system / tests / src / Functional / System / AdminMetaTagTest.php
diff --git a/web/core/modules/system/tests/src/Functional/System/AdminMetaTagTest.php b/web/core/modules/system/tests/src/Functional/System/AdminMetaTagTest.php
new file mode 100644 (file)
index 0000000..c58d1ec
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+
+namespace Drupal\Tests\system\Functional\System;
+
+use Drupal\Tests\BrowserTestBase;
+
+/**
+ * Confirm that the fingerprinting meta tag appears as expected.
+ *
+ * @group system
+ */
+class AdminMetaTagTest extends BrowserTestBase {
+  /**
+   * 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');
+  }
+
+}