You are here

protected function PageTestHelperTrait::triggerRouterRebuild in Page Manager 8.4

Triggers a router rebuild.

The UI would trigger a router rebuild, call it manually for API calls.

5 calls to PageTestHelperTrait::triggerRouterRebuild()
FrontPageTest::testFrontPageTitle in tests/src/Functional/FrontPageTest.php
Tests the front page title.
PageManagerTranslationIntegrationTest::testNode in tests/src/Functional/PageManagerTranslationIntegrationTest.php
Tests that overriding the node page does not prevent translation.
PageNodeAccessTest::testUserRoleAccessCondition in tests/src/Functional/PageNodeAccessTest.php
Tests that a user role condition controls the node view page.
PageNodeSelectionTest::testAdmin in tests/src/Functional/PageNodeSelectionTest.php
Tests that a node bundle condition controls the node view page.
PagePlaceholderTest::testPagePlaceHolder in tests/src/Functional/PagePlaceholderTest.php
Tests that a node bundle condition controls the node view page.

File

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

Class

PageTestHelperTrait
Provides helpers for Page Manager tests.

Namespace

Drupal\Tests\page_manager\Functional

Code

protected function triggerRouterRebuild() {
  $this->container
    ->get('router.builder')
    ->rebuildIfNeeded();
}