public function BasicTest::testConfig in JSON Web Token Authentication (JWT) 8.0
Same name and namespace in other branches
- 8 tests/src/Kernel/BasicTest.php \Drupal\Tests\jwt\Kernel\BasicTest::testConfig()
Verify the test config was loaded as keys.
File
- tests/
src/ Kernel/ BasicTest.php, line 30
Class
- BasicTest
- Tests JWT config schema.
Namespace
Drupal\Tests\jwt\KernelCode
public function testConfig() {
$key_repository = $this->container
->get('key.repository');
$key_hmac = $key_repository
->getKey('jwt_test_hmac');
$this
->assertNotEmpty($key_hmac);
$key_rsa = $key_repository
->getKey('jwt_test_rsa');
$this
->assertNotEmpty($key_rsa);
}