function ThemeTest::testThemeSettingsNoLogoNoFavicon

Same name and namespace in other branches
  1. 9 core/modules/system/tests/src/Functional/System/ThemeTest.php \Drupal\Tests\system\Functional\System\ThemeTest::testThemeSettingsNoLogoNoFavicon()
  2. 8.9.x core/modules/system/tests/src/Functional/System/ThemeTest.php \Drupal\Tests\system\Functional\System\ThemeTest::testThemeSettingsNoLogoNoFavicon()
  3. 11.x core/modules/system/tests/src/Functional/System/ThemeTest.php \Drupal\Tests\system\Functional\System\ThemeTest::testThemeSettingsNoLogoNoFavicon()

Tests the theme settings form when logo and favicon features are disabled.

File

core/modules/system/tests/src/Functional/System/ThemeTest.php, line 558

Class

ThemeTest
Tests the theme administration user interface.

Namespace

Drupal\Tests\system\Functional\System

Code

public function testThemeSettingsNoLogoNoFavicon() : void {
  // Install theme with no logo and no favicon feature.
  $this->container
    ->get('theme_installer')
    ->install([
    'test_theme_settings_features',
  ]);
  // Visit this theme's settings page.
  $this->drupalGet('admin/appearance/settings/test_theme_settings_features');
  $edit = [];
  $this->drupalGet('admin/appearance/settings/test_theme_settings_features');
  $this->submitForm($edit, 'Save configuration');
  $this->assertSession()
    ->pageTextContains('The configuration options have been saved.');
}

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