Permalink
Browse files

MDL-36447 skip file preview test if GD not available

  • Loading branch information...
1 parent 325e266 commit da0cf7f8839c664e6ef63b1835fbebd61dadc200 @skodak skodak committed Dec 9, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/filestorage/tests/file_storage_test.php
View
4 lib/filestorage/tests/file_storage_test.php
@@ -67,6 +67,10 @@ public function test_create_file_from_pathname() {
public function test_get_file_preview(stored_file $file) {
global $CFG;
+ if (empty($CFG->gdversion)) {
+ $this->markTestSkipped('GD extension is disabled');
+ }
+
$this->resetAfterTest(true);
$fs = get_file_storage();

0 comments on commit da0cf7f

Please sign in to comment.