You are here

public function DefaultMobileMetaTagsTest::testDefaultMetaTagsExist in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Functional/System/DefaultMobileMetaTagsTest.php \Drupal\Tests\system\Functional\System\DefaultMobileMetaTagsTest::testDefaultMetaTagsExist()

Verifies that the default mobile meta tags are added.

File

core/modules/system/tests/src/Functional/System/DefaultMobileMetaTagsTest.php, line 36

Class

DefaultMobileMetaTagsTest
Confirm that the default mobile meta tags appear as expected.

Namespace

Drupal\Tests\system\Functional\System

Code

public function testDefaultMetaTagsExist() {
  $this
    ->drupalGet('');
  foreach ($this->defaultMetaTags as $name => $metatag) {
    $this
      ->assertSession()
      ->responseContains($metatag);
  }
}