You are here

public function DefaultMobileMetaTagsTest::testRemovingDefaultMetaTags in Zircon Profile 8.0

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

Verifies that the default mobile meta tags can be removed.

File

core/modules/system/src/Tests/System/DefaultMobileMetaTagsTest.php, line 46
Contains \Drupal\system\Tests\System\DefaultMobileMetaTagsTest.

Class

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

Namespace

Drupal\system\Tests\System

Code

public function testRemovingDefaultMetaTags() {
  \Drupal::service('module_installer')
    ->install(array(
    'system_module_test',
  ));
  $this
    ->drupalGet('');
  foreach ($this->defaultMetaTags as $name => $metatag) {
    $this
      ->assertNoRaw($metatag, SafeMarkup::format('Default Mobile meta tag "@name" removed properly.', array(
      '@name' => $name,
    )), 'System');
  }
}