function DefaultMobileMetaTagsTest::testRemovingDefaultMetaTags

Same name in this branch
  1. 11.x core/modules/system/tests/src/Functional/System/DefaultMobileMetaTagsTest.php \Drupal\Tests\system\Functional\System\DefaultMobileMetaTagsTest::testRemovingDefaultMetaTags()
Same name and namespace in other branches
  1. 10 core/modules/system/tests/src/Functional/System/DefaultMobileMetaTagsTest.php \Drupal\Tests\system\Functional\System\DefaultMobileMetaTagsTest::testRemovingDefaultMetaTags()
  2. 9 core/modules/system/tests/src/Functional/System/DefaultMobileMetaTagsTest.php \Drupal\Tests\system\Functional\System\DefaultMobileMetaTagsTest::testRemovingDefaultMetaTags()
  3. 8.9.x core/modules/system/tests/src/Functional/System/DefaultMobileMetaTagsTest.php \Drupal\Tests\system\Functional\System\DefaultMobileMetaTagsTest::testRemovingDefaultMetaTags()
  4. main core/modules/system/tests/src/Functional/System/DefaultMobileMetaTagsTest.php \Drupal\Tests\system\Functional\System\DefaultMobileMetaTagsTest::testRemovingDefaultMetaTags()
  5. main core/modules/system/tests/src/Kernel/System/DefaultMobileMetaTagsTest.php \Drupal\Tests\system\Kernel\System\DefaultMobileMetaTagsTest::testRemovingDefaultMetaTags()

Verifies that the default mobile meta tags can be removed.

File

core/modules/system/tests/src/Kernel/System/DefaultMobileMetaTagsTest.php, line 53

Class

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

Namespace

Drupal\Tests\system\Kernel\System

Code

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

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