You are here

public function DefaultMobileMetaTagsTest::testRemovingDefaultMetaTags 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::testRemovingDefaultMetaTags()

Verifies that the default mobile meta tags can be removed.

File

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

Class

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

Namespace

Drupal\Tests\system\Functional\System

Code

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