protected function PageTestHelperTrait::triggerRouterRebuild in Page Manager 8
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 src/
Tests/ FrontPageTest.php - Tests the front page title.
- PageManagerTranslationIntegrationTest::testNode in src/
Tests/ PageManagerTranslationIntegrationTest.php - Tests that overriding the node page does not prevent translation.
- PageNodeAccessTest::testUserRoleAccessCondition in src/
Tests/ PageNodeAccessTest.php - Tests that a user role condition controls the node view page.
- PageNodeSelectionTest::testAdmin in src/
Tests/ PageNodeSelectionTest.php - Tests that a node bundle condition controls the node view page.
- PagePlaceholderTest::testPagePlaceHolder in src/
Tests/ PagePlaceholderTest.php - Tests that a node bundle condition controls the node view page.
File
- src/
Tests/ PageTestHelperTrait.php, line 22 - Contains \Drupal\page_manager\Tests\PageTestHelperTrait.
Class
- PageTestHelperTrait
- Provides helpers for Page Manager tests.
Namespace
Drupal\page_manager\TestsCode
protected function triggerRouterRebuild() {
$this->container
->get('router.builder')
->rebuildIfNeeded();
}