You are here

class NonDefaultBlockAdminTest in MongoDB 7

Check for non-default theme admin.

Hierarchy

Expanded class hierarchy of NonDefaultBlockAdminTest

File

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

Namespace

Drupal\mongodb_block_ui\Tests
View 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

Namesort descending Modifiers Type Description Overrides
NonDefaultBlockAdminTest::getInfo public static function Name the test.
NonDefaultBlockAdminTest::testNonDefaultBlockAdmin public function Test non-default theme admin.