class NonDefaultBlockAdmin
Hierarchy
- class \DrupalTestCase
- class \DrupalWebTestCase implements \DrupalTestCase
- class \NonDefaultBlockAdmin implements \DrupalWebTestCase
- class \DrupalWebTestCase implements \DrupalTestCase
Expanded class hierarchy of NonDefaultBlockAdmin
File
-
modules/
block/ block.test, line 383
View source
class NonDefaultBlockAdmin extends DrupalWebTestCase {
public static function getInfo() {
return array(
'name' => 'Non default theme admin',
'description' => 'Check the administer page for non default theme.',
'group' => 'Block',
);
}
/**
* Test non-default theme admin.
*/
function testNonDefaultBlockAdmin() {
$admin_user = $this->drupalCreateUser(array(
'administer blocks',
'administer themes',
));
$this->drupalLogin($admin_user);
theme_enable(array(
'stark',
));
$this->drupalGet('admin/structure/block/list/stark');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.