Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-36447 skip file preview test if GD not available

  • Loading branch information...
commit da0cf7f8839c664e6ef63b1835fbebd61dadc200 1 parent 325e266
Petr Škoda authored December 09, 2012
4  lib/filestorage/tests/file_storage_test.php
@@ -67,6 +67,10 @@ public function test_create_file_from_pathname() {
67 67
     public function test_get_file_preview(stored_file $file) {
68 68
         global $CFG;
69 69
 
  70
+        if (empty($CFG->gdversion)) {
  71
+            $this->markTestSkipped('GD extension is disabled');
  72
+        }
  73
+
70 74
         $this->resetAfterTest(true);
71 75
         $fs = get_file_storage();
72 76
 

0 notes on commit da0cf7f

Please sign in to comment.
Something went wrong with that request. Please try again.