Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / system / tests / src / Functional / System / AdminMetaTagTest.php
1 <?php
2
3 namespace Drupal\Tests\system\Functional\System;
4
5 use Drupal\Tests\BrowserTestBase;
6
7 /**
8  * Confirm that the fingerprinting meta tag appears as expected.
9  *
10  * @group system
11  */
12 class AdminMetaTagTest extends BrowserTestBase {
13   /**
14    * Verify that the meta tag HTML is generated correctly.
15    */
16   public function testMetaTag() {
17     list($version, ) = explode('.', \Drupal::VERSION);
18     $string = '<meta name="Generator" content="Drupal ' . $version . ' (https://www.drupal.org)" />';
19     $this->drupalGet('node');
20     $this->assertRaw($string, 'Fingerprinting meta tag generated correctly.', 'System');
21   }
22
23 }