You are here

trait PageTestHelperTrait in Page Manager 8.4

Provides helpers for Page Manager tests.

Hierarchy

File

tests/src/Functional/PageTestHelperTrait.php, line 8

Namespace

Drupal\Tests\page_manager\Functional
View source
trait PageTestHelperTrait {

  // @fixme: Remove this change when https://www.drupal.org/node/2684281 is fixed.

  /**
   * Triggers a router rebuild.
   *
   * The UI would trigger a router rebuild, call it manually for API calls.
   */
  protected function triggerRouterRebuild() {
    $this->container
      ->get('router.builder')
      ->rebuildIfNeeded();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PageTestHelperTrait::triggerRouterRebuild protected function Triggers a router rebuild.