class NonDefaultBlockAdminTest in MongoDB 7
Check for non-default theme admin.
Hierarchy
- class \Drupal\mongodb_block_ui\Tests\NonDefaultBlockAdminTest extends \Drupal\mongodb_block_ui\Tests\DrupalWebTestCase
Expanded class hierarchy of NonDefaultBlockAdminTest
File
- mongodb_block_ui/
src/ Tests/ NonDefaultBlockAdminTest.php, line 8
Namespace
Drupal\mongodb_block_ui\TestsView source
class NonDefaultBlockAdminTest extends \DrupalWebTestCase {
/**
* Name the test.
*/
public static function getInfo() {
return array(
'name' => 'Non default theme admin',
'description' => 'Check the administer page for non default theme.',
'group' => 'MongoDB: Block',
);
}
/**
* Test non-default theme admin.
*/
public 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');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
NonDefaultBlockAdminTest:: |
public static | function | Name the test. | |
NonDefaultBlockAdminTest:: |
public | function | Test non-default theme admin. |