summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2014-04-29 13:32:02 (GMT)
committerNathaniel Catchpole2014-04-29 13:32:02 (GMT)
commit5c814d168d521f5aa9af91a66121f21dc5c952cc (patch)
treebf86770d7d5e9a3d65a788f11295ed105a571c0e
parent1b76c015a944617e5edd77a9a2e0f70cbcd34abc (diff)
Issue #323926 by porchlight, Tor Arne Thune, mr.baileys, rszrama: Settings for non-existent theme.
-rw-r--r--core/modules/system/lib/Drupal/system/Tests/System/ThemeTest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/modules/system/lib/Drupal/system/Tests/System/ThemeTest.php b/core/modules/system/lib/Drupal/system/Tests/System/ThemeTest.php
index c7911b5..38d5a94 100644
--- a/core/modules/system/lib/Drupal/system/Tests/System/ThemeTest.php
+++ b/core/modules/system/lib/Drupal/system/Tests/System/ThemeTest.php
@@ -44,6 +44,12 @@ class ThemeTest extends WebTestBase {
* Test the theme settings form.
*/
function testThemeSettings() {
+ // Ensure invalid theme settings form URLs return a proper 404.
+ $this->drupalGet('admin/appearance/settings/bartik');
+ $this->assertResponse(404, 'The theme settings form URL for a disabled theme could not be found.');
+ $this->drupalGet('admin/appearance/settings/' . $this->randomName());
+ $this->assertResponse(404, 'The theme settings form URL for a non-existent theme could not be found.');
+
// Specify a filesystem path to be used for the logo.
$file = current($this->drupalGetTestFiles('image'));
$file_relative = strtr($file->uri, array('public:/' => PublicStream::basePath()));