Page MenuHomestyx hydra

No OneTemporary

diff --git a/src/applications/files/transform/__tests__/PhabricatorFileTransformTestCase.php b/src/applications/files/transform/__tests__/PhabricatorFileTransformTestCase.php
index 4cc4a6e54b..d9a9012ef0 100644
--- a/src/applications/files/transform/__tests__/PhabricatorFileTransformTestCase.php
+++ b/src/applications/files/transform/__tests__/PhabricatorFileTransformTestCase.php
@@ -1,10 +1,34 @@
<?php
final class PhabricatorFileTransformTestCase extends PhabricatorTestCase {
+ protected function getPhabricatorTestCaseConfiguration() {
+ return array(
+ self::PHABRICATOR_TESTCONFIG_BUILD_STORAGE_FIXTURES => true,
+ );
+ }
+
public function testGetAllTransforms() {
PhabricatorFileTransform::getAllTransforms();
$this->assertTrue(true);
}
+ public function testThumbTransformDefaults() {
+ $xforms = PhabricatorFileTransform::getAllTransforms();
+ $file = new PhabricatorFile();
+
+ foreach ($xforms as $xform) {
+ if (!($xform instanceof PhabricatorFileThumbnailTransform)) {
+ continue;
+ }
+
+ // For thumbnails, generate the default thumbnail. This should be able
+ // to generate something rather than throwing an exception because we
+ // forgot to add a default file to the builtin resources. See T12614.
+ $xform->getDefaultTransform($file);
+
+ $this->assertTrue(true);
+ }
+ }
+
}

File Metadata

Mime Type
text/x-diff
Expires
Sun, Jul 27, 7:05 PM (1 w, 17 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
184990
Default Alt Text
(1 KB)

Event Timeline