diff options
Diffstat (limited to 'modules/block/block.test')
-rw-r--r-- | modules/block/block.test | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/modules/block/block.test b/modules/block/block.test index 8f812e9c4..30f54f052 100644 --- a/modules/block/block.test +++ b/modules/block/block.test @@ -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')); + } } |