You are here

public function NonDefaultBlockAdminTest::testNonDefaultBlockAdmin in MongoDB 7

Test non-default theme admin.

File

mongodb_block_ui/src/Tests/NonDefaultBlockAdminTest.php, line 24

Class

NonDefaultBlockAdminTest
Check for non-default theme admin.

Namespace

Drupal\mongodb_block_ui\Tests

Code

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');
}