protected function ApigeeMockApiClientHelperTrait::installExtraModules in Apigee Edge 8
Installs a given list of modules and rebuilds the cache.
Parameters
string[] $module_list: An array of module names.
See also
\Drupal\Tests\toolbar\Functional\ToolbarCacheContextsTest::installExtraModules()
4 calls to ApigeeMockApiClientHelperTrait::installExtraModules()
- ApigeeEdgeFunctionalTestTrait::initTestEnv in tests/
src/ Traits/ ApigeeEdgeFunctionalTestTrait.php - Initializes test environment with required configuration.
- DeveloperAppCredentialEventTest::setUp in tests/
src/ Functional/ DeveloperAppCredentialEventTest.php - DeveloperAppUITest::setUp in tests/
src/ Functional/ DeveloperAppUITest.php - UiTest::setUp in modules/
apigee_edge_teams/ tests/ src/ Functional/ UiTest.php
File
- tests/
modules/ apigee_mock_api_client/ tests/ src/ Traits/ ApigeeMockApiClientHelperTrait.php, line 356
Class
- ApigeeMockApiClientHelperTrait
- Helper functions working with Apigee tests.
Namespace
Drupal\Tests\apigee_mock_api_client\TraitsCode
protected function installExtraModules(array $module_list) {
\Drupal::service('module_installer')
->install($module_list);
// Installing modules updates the container and needs a router rebuild.
$this->container = \Drupal::getContainer();
$this->container
->get('router.builder')
->rebuildIfNeeded();
}