You are here

protected function ApigeeEdgeUtilTestTrait::invalidateKey in Apigee Edge 8

Removes the active key for testing with unset API credentials.

6 calls to ApigeeEdgeUtilTestTrait::invalidateKey()
AppSettingsFormTest::testAppSettingsForm in tests/src/FunctionalJavascript/AppSettingsFormTest.php
Tests the app settings AJAX form.
AuthenticationFormJsTest::validateForm in tests/src/FunctionalJavascript/Form/AuthenticationFormJsTest.php
Validates the visited 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.
ErrorHandlerTest::setUp in tests/src/Functional/ErrorHandlerTest.php

... See full list

File

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

Class

ApigeeEdgeUtilTestTrait
Provides common functionality for the Apigee Edge test classes.

Namespace

Drupal\Tests\apigee_edge\Traits

Code

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