public function ThemeTest::testThemeSettingsNoLogoNoFavicon in Drupal 9
Same name and namespace in other branches
- 8 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 493
Class
- ThemeTest
- Tests the theme interface functionality by enabling and switching themes, and using an administration theme.
Namespace
Drupal\Tests\system\Functional\SystemCode
public function testThemeSettingsNoLogoNoFavicon() {
// 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.');
}