Permalink
Browse files

MDL-36447 skip file preview test if GD not available

  • Loading branch information...
1 parent 9958465 commit 0f4db4574cb9d4f726226a01a2a65fc2025be520 @skodak skodak committed Dec 9, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 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 0f4db45

Please sign in to comment.