diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-03-31 19:10:39 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-03-31 19:10:39 +0000 |
commit | fa63e6fe6873a4133055c01e277a6b2ace28b759 (patch) | |
tree | 6e59c236c586379d571d506a6ce23eaea3a6af47 /modules/system/system.test | |
parent | d054bfaa01a6018ab6305806143dffe91ce8fb92 (diff) | |
download | brdo-fa63e6fe6873a4133055c01e277a6b2ace28b759.tar.gz brdo-fa63e6fe6873a4133055c01e277a6b2ace28b759.tar.bz2 |
- Patch #305653 by donquixote, David_Rothstein, cdale, sun, snowball43, Dave Reid, JohnAlbin, aspilicious: themes disabled during update.
Diffstat (limited to 'modules/system/system.test')
-rw-r--r-- | modules/system/system.test | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/system/system.test b/modules/system/system.test index 049502194..55c4083a5 100644 --- a/modules/system/system.test +++ b/modules/system/system.test @@ -1604,6 +1604,20 @@ class UpdateScriptFunctionalTest extends DrupalWebTestCase { $this->drupalGet($this->update_url, array('external' => TRUE)); $this->assertResponse(200); } + + /** + * Tests the effect of using the update script on the theme system. + */ + function testThemeSystem() { + // Since visiting update.php triggers a rebuild of the theme system from an + // unusual maintenance mode environment, we check that this rebuild did not + // put any incorrect information about the themes into the database. + $original_theme_data = db_query("SELECT * FROM {system} WHERE type = 'theme' ORDER BY name")->fetchAll(); + $this->drupalLogin($this->update_user); + $this->drupalGet($this->update_url, array('external' => TRUE)); + $final_theme_data = db_query("SELECT * FROM {system} WHERE type = 'theme' ORDER BY name")->fetchAll(); + $this->assertEqual($original_theme_data, $final_theme_data, t('Visiting update.php does not alter the information about themes stored in the database.')); + } } /** |