You are here

protected function ApigeeEdgeUtilTestTrait::setKey in Apigee Edge 8

Set active authentication keys in config.

Parameters

string $active_key: The active authentication key.

1 call to ApigeeEdgeUtilTestTrait::setKey()
StatusReportTest::testInvalidCredentials in tests/src/Functional/StatusReportTest.php
Tests invalid credentials.

File

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

Class

ApigeeEdgeUtilTestTrait
Provides common functionality for the Apigee Edge test classes.

Namespace

Drupal\Tests\apigee_edge\Traits

Code

protected function setKey(string $active_key) {
  $this
    ->config('apigee_edge.auth')
    ->set('active_key', $active_key)
    ->save();
}