function DefaultMobileMetaTagsTest::testRemovingDefaultMetaTags

Verifies that the default mobile meta tags can be removed.

File

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

Class

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

Namespace

Drupal\Tests\system\Functional\System

Code

public function testRemovingDefaultMetaTags() : void {
  \Drupal::service('module_installer')->install([
    'system_module_test',
  ]);
  $this->drupalGet('');
  foreach ($this->defaultMetaTags as $name => $metatag) {
    $this->assertSession()
      ->responseNotContains($metatag);
  }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.