public function ThemeTest::testThemeSettingsNoLogoNoFavicon in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/src/Functional/System/ThemeTest.php \Drupal\Tests\system\Functional\System\ThemeTest::testThemeSettingsNoLogoNoFavicon()
Test the theme settings form when logo and favicon features are disabled.
File
- core/
modules/ system/ tests/ src/ Functional/ System/ ThemeTest.php, line 485
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
->drupalPostForm('admin/appearance/settings/test_theme_settings_features', $edit, t('Save configuration'));
$this
->assertText('The configuration options have been saved.');
}