public function AdminMetaTagTest::testMetaTag in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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\SystemCode
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');
}