protected function ApigeeEdgeFunctionalTestTrait::initTestEnv in Apigee Edge 8
Initializes test environment with required configuration.
2 calls to ApigeeEdgeFunctionalTestTrait::initTestEnv()
- ApigeeEdgeFunctionalJavascriptTestBase::setUp in tests/
src/ FunctionalJavascript/ ApigeeEdgeFunctionalJavascriptTestBase.php - ApigeeEdgeFunctionalTestBase::setUp in tests/
src/ Functional/ ApigeeEdgeFunctionalTestBase.php
File
- tests/
src/ Traits/ ApigeeEdgeFunctionalTestTrait.php, line 53
Class
- ApigeeEdgeFunctionalTestTrait
- Provides common functionality for the Apigee Edge test classes.
Namespace
Drupal\Tests\apigee_edge\TraitsCode
protected function initTestEnv() : void {
if (static::$mock_api_client_ready) {
$this
->installExtraModules([
'apigee_mock_api_client',
]);
$this
->apigeeTestHelperSetup();
}
else {
$this
->installExtraModules([
'apigee_edge_test',
]);
$this
->createTestKey();
$this
->restoreKey();
}
}