mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-36447 skip file preview test if GD not available
This commit is contained in:
parent
99584654ce
commit
0f4db4574c
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue