X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/97274a81401bc17ae3e79e77c7475f25a3193412..refs/pull/5676/head:/tests/Helpers/FileProvider.php diff --git a/tests/Helpers/FileProvider.php b/tests/Helpers/FileProvider.php index 99ee11efb..a455e0fb4 100644 --- a/tests/Helpers/FileProvider.php +++ b/tests/Helpers/FileProvider.php @@ -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. */ @@ -159,4 +167,12 @@ class FileProvider $fileService->deleteFile($file); } } + + /** + * Reset the application favicon image in the public path. + */ + public function resetAppFavicon(): void + { + file_put_contents(public_path('favicon.ico'), file_get_contents(public_path('icon.ico'))); + } }