You are here

public function KeyRepositoryUnavailableTest::testKeyProviderGetKeysThrowsException in Akamai 8.3

Tests key provider can't retrieve keys if key module is missing.

File

tests/src/Kernel/KeyRepositoryUnavailableTest.php, line 39

Class

KeyRepositoryUnavailableTest
Tests key provider functionality with key module is not installed.

Namespace

Drupal\Tests\akamai\Kernel

Code

public function testKeyProviderGetKeysThrowsException() {
  $this
    ->expectException(\Exception::class);
  $keys = $this->container
    ->get('akamai.key_provider')
    ->getKeys();
}