You are here

public function KeyAuthTest::testRandomKey in Key auth 8

Test random key generation.

File

tests/src/Functional/KeyAuthTest.php, line 101

Class

KeyAuthTest
Tests for key authentication provider.

Namespace

Drupal\Tests\key_auth\Functional

Code

public function testRandomKey() {
  $this
    ->assertNotEquals($this->keyAuth
    ->generateKey(), $this->keyAuth
    ->generateKey());
}