summaryrefslogtreecommitdiff
path: root/modules/color/color.test
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-04-03 08:05:08 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-04-03 08:05:08 +0000
commit29a93b8c08b0f2d8fe772764119c95eef56aa972 (patch)
treeb56d5f95b14efcfb84132b8dc0ee32d19bbbd289 /modules/color/color.test
parent7817a0a56e313239d4ee6c36e3591fdea0b94132 (diff)
downloadbrdo-29a93b8c08b0f2d8fe772764119c95eef56aa972.tar.gz
brdo-29a93b8c08b0f2d8fe772764119c95eef56aa972.tar.bz2
#693504 by stBorchert, ksenzee, dixon_ | jarek, joachim, EvanDonovan, eigentor, sun, dmitrig01, et al.: Added support to color.module for flexible color schemes and gradients, and removed hard-coded assumptions about Garland.
Diffstat (limited to 'modules/color/color.test')
-rw-r--r--modules/color/color.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/color/color.test b/modules/color/color.test
index 7b01b80b9..d487be24b 100644
--- a/modules/color/color.test
+++ b/modules/color/color.test
@@ -45,6 +45,18 @@ class ColorTestCase extends DrupalWebTestCase {
$stylesheet_content = join("\n", file($stylesheets[0]));
$matched = preg_match('/(.*color: #123456.*)/i', $stylesheet_content, $matches);
$this->assertTrue($matched == 1, 'Make sure the color we changed is in the color stylesheet.');
+
+ $this->drupalGet('admin/appearance/settings/garland');
+ $this->assertResponse(200);
+ $edit['scheme'] = 'greenbeam';
+ $this->drupalPost('admin/appearance/settings/garland', $edit, t('Save configuration'));
+
+ $this->drupalGet('<front>');
+ $stylesheets = variable_get('color_' . $theme_key . '_stylesheets', array());
+ $stylesheet_content = join("\n", file($stylesheets[0]));
+ $matched = preg_match('/(.*color: #0c7a00.*)/i', $stylesheet_content, $matches);
+ $this->assertTrue($matched == 1, 'Make sure the color we changed is in the color stylesheet.');
+
}
}