]> BookStack Code Mirror - bookstack/blobdiff - tests/Helpers/FileProvider.php
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / tests / Helpers / FileProvider.php
index 442e036ff245e4dda122b4d7a4bbbaf033293fd2..a455e0fb4ea503641a91d5c018d147db80c628d5 100644 (file)
@@ -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.
      */