protected function KeyTestBase::createToken in Key 8
Return a token that could be a key.
Return value
string A hashed string that could be confused as some secret token.
1 call to KeyTestBase::createToken()
- KeyEntityTest::setUp in tests/
src/ Unit/ Entity/ KeyEntityTest.php
File
- tests/
src/ Unit/ KeyTestBase.php, line 86
Class
- KeyTestBase
- Provides a base class for key tests.
Namespace
Drupal\Tests\key\UnitCode
protected function createToken() {
return strtoupper(hash('ripemd128', Crypt::hashBase64($this
->getRandomGenerator()
->string(30))));
}