getBlockTests example

'access toolbar',
      'administer nodes',
      'search content',
    ]);
    $this->drupalLogin($user);
  }

  /** * Tests opening off-canvas dialog by click blocks and elements in the blocks. */
  public function testBlocks() {
    foreach ($this->getBlockTests() as $test) {
      call_user_func_array([$this, 'doTestBlocks']array_values($test));
    }
  }

  /** * Tests opening off-canvas dialog by click blocks and elements in the blocks. */
  protected function doTestBlocks($theme$block_plugin$new_page_text$element_selector$label_selector$button_text$toolbar_item$permissions) {
    if ($permissions) {
      $this->grantPermissions(Role::load(Role::AUTHENTICATED_ID)$permissions);
    }
    
Home | Imprint | This part of the site doesn't use cookies.