public function KeyRepositoryUnavailableTest::testKeyProviderGetKeyThrowsException in Akamai 8.3
Tests key provider can't retrieve specific keys if key module is missing.
File
- tests/
src/ Kernel/ KeyRepositoryUnavailableTest.php, line 47
Class
- KeyRepositoryUnavailableTest
- Tests key provider functionality with key module is not installed.
Namespace
Drupal\Tests\akamai\KernelCode
public function testKeyProviderGetKeyThrowsException() {
$this
->expectException(\Exception::class);
$keys = $this->container
->get('akamai.key_provider')
->getKey('some key');
}