MDL-36447 skip file preview test if GD not available

This commit is contained in:
Petr Škoda 2012-12-09 19:22:01 +01:00
parent 99584654ce
commit 0f4db4574c

View file

@ -67,6 +67,10 @@ class filestoragelib_testcase extends advanced_testcase {
public function test_get_file_preview(stored_file $file) { public function test_get_file_preview(stored_file $file) {
global $CFG; global $CFG;
if (empty($CFG->gdversion)) {
$this->markTestSkipped('GD extension is disabled');
}
$this->resetAfterTest(true); $this->resetAfterTest(true);
$fs = get_file_storage(); $fs = get_file_storage();