You are here

public function DefaultMobileMetaTagsTest::testRemovingDefaultMetaTags in Drupal 8

Same name and namespace in other branches
  1. 9 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 47

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
      ->assertNoRaw($metatag, new FormattableMarkup('Default Mobile meta tag "@name" removed properly.', [
      '@name' => $name,
    ]), 'System');
  }
}