You are here

protected function ApigeeEdgeUtilTestTrait::restoreKey in Apigee Edge 8

Restores the active key.

5 calls to ApigeeEdgeUtilTestTrait::restoreKey()
ApigeeEdgeFunctionalTestTrait::initTestEnv in tests/src/Traits/ApigeeEdgeFunctionalTestTrait.php
Initializes test environment with required configuration.
ApigeeMockApiClientHelperTrait::initAuth in tests/modules/apigee_mock_api_client/tests/src/Traits/ApigeeMockApiClientHelperTrait.php
Initialize SDK connector.
AppSettingsFormTest::testAppSettingsForm in tests/src/FunctionalJavascript/AppSettingsFormTest.php
Tests the app settings AJAX form.
DeveloperTest::developerCreateByAdminTest in tests/src/Functional/DeveloperTest.php
Tests creating, editing and deleting developer entity by admin.
DeveloperTest::developerRegisterTest in tests/src/Functional/DeveloperTest.php
Tests user/developer registration and edit.

File

tests/src/Traits/ApigeeEdgeUtilTestTrait.php, line 65

Class

ApigeeEdgeUtilTestTrait
Provides common functionality for the Apigee Edge test classes.

Namespace

Drupal\Tests\apigee_edge\Traits

Code

protected function restoreKey() {
  $test_key_id = 'test';
  $this
    ->config('apigee_edge.auth')
    ->set('active_key', $test_key_id)
    ->save();
}