protected function JwtPathAuthTest::getFileContent in JSON Web Token Authentication (JWT) 8
Gets the text secret for a file.
Parameters
\Drupal\file\FileInterface $file: The file entity.
Return value
string The text secret.
2 calls to JwtPathAuthTest::getFileContent()
- JwtPathAuthTest::createPrivateFile in tests/
src/ Functional/ JwtPathAuthTest.php - Creates a private file.
- JwtPathAuthTest::testPathAdmin in tests/
src/ Functional/ JwtPathAuthTest.php - Test admin form updates and actual path auth.
File
- tests/
src/ Functional/ JwtPathAuthTest.php, line 238
Class
- JwtPathAuthTest
- Tests path-based authentication.
Namespace
Drupal\Tests\jwt\FunctionalCode
protected function getFileContent(FileInterface $file) {
return "The content in {$file->label()} {$file->uuid()}";
}