1 token.test | ImageStyleTokenTests::getTestImage() |
Generates a test image.
Return value
stdClass: A file object.
File
- core/
modules/ image/ tests/ token.test, line 101 - Tests for image.module.
Class
- ImageStyleTokenTests
- Test the Image Style Token module.
Code
function getTestImage() {
// Get a file to upload.
$file = current($this->backdropGetTestFiles('image'));
// Add a filesize property to files as would be read by file_load().
$file->filesize = filesize($file->uri);
return $file;
}