Mercurial > hg > isophonics-drupal-site
diff core/modules/system/src/Tests/System/ThemeTest.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 1fec387a4317 |
children |
line wrap: on
line diff
--- a/core/modules/system/src/Tests/System/ThemeTest.php Thu Apr 26 11:26:54 2018 +0100 +++ b/core/modules/system/src/Tests/System/ThemeTest.php Tue Jul 10 15:07:59 2018 +0100 @@ -428,4 +428,17 @@ $this->assertTextPattern('/Bartik ' . preg_quote($version) . '\s{2,}\(default theme\)/'); } + /** + * Test the theme settings form when logo and favicon features are disabled. + */ + public function testThemeSettingsNoLogoNoFavicon() { + // Install theme with no logo and no favicon feature. + $this->container->get('theme_handler')->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.'); + } + }