mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-06 12:02:45 +03:00
OIDC: Added testing coverage for picture fetching
This commit is contained in:
@@ -60,6 +60,14 @@ class FileProvider
|
||||
return file_get_contents($this->testFilePath('test-image.png'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get raw data for a Jpeg image test file.
|
||||
*/
|
||||
public function jpegImageData(): string
|
||||
{
|
||||
return file_get_contents($this->testFilePath('test-image.jpg'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the expected relative path for an uploaded image of the given type and filename.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user