Commit cf5b00c5 authored by webchick's avatar webchick

#275092 follow-up by chx: Fix admin blocks page to work with secondary themes...

#275092 follow-up by chx: Fix admin blocks page to work with secondary themes + test so we don't break it again.
parent a7c16d15
......@@ -108,4 +108,29 @@ class BlockTestCase extends DrupalWebTestCase {
$this->drupalPost('admin/build/block/configure/' . $block['module'] . '/' . $block['delta'], array('title' => 'Navigation'), t('Save block'));
$this->assertText(t('The block configuration has been saved.'), t('Block title set.'));
}
}
class NonDefaultBlockAdmin extends DrupalWebTestCase {
/**
* Implementation of getInfo().
*/
function getInfo() {
return array(
'name' => t('Non default theme admin'),
'description' => t('Check the administer page for non default theme.'),
'group' => t('Block'),
);
}
/**
* Test non-default theme admin.
*/
function testNnonDefaultBlockAdmin() {
$admin_user = $this->drupalCreateUser(array('administer blocks', 'administer site configuration'));
$this->drupalLogin($admin_user);
$this->drupalPost('admin/build/themes', array('status[bluemarine]' => 1), t('Save configuration'));
$this->drupalGet('admin/build/block/list/bluemarine');
$this->assertRaw('bluemarine/style.css', t('Bluemarine CSS found'));
}
}
......@@ -692,7 +692,12 @@ function system_init() {
drupal_add_css(drupal_get_path('module', 'system') . '/defaults.css', 'module');
drupal_add_css(drupal_get_path('module', 'system') . '/system.css', 'module');
drupal_add_css(drupal_get_path('module', 'system') . '/system-menus.css', 'module');
}
/**
* Implementation of MODULE_preprocess_HOOK().
*/
function system_preprocess_page() {
// Get the major version
list($version,) = explode('.', VERSION);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment