function NonDefaultBlockAdminTest::testNonDefaultBlockAdmin

Test non-default theme admin.

File

drupal/core/modules/block/lib/Drupal/block/Tests/NonDefaultBlockAdminTest.php, line 32
Definition of Drupal\block\Tests\NonDefaultBlockAdminTest.

Class

NonDefaultBlockAdminTest

Namespace

Drupal\block\Tests

Code

function testNonDefaultBlockAdmin() {
  $admin_user = $this
    ->drupalCreateUser(array(
    'administer blocks',
    'administer themes',
  ));
  $this
    ->drupalLogin($admin_user);
  $new_theme = 'bartik';
  theme_enable(array(
    $new_theme,
  ));
  $this
    ->drupalGet('admin/structure/block/list/' . $new_theme);
}