silverstripe-framework/tests/model/ImagickImageTest.php

21 lines
422 B
PHP
Raw Normal View History

<?php
use SilverStripe\Core\Config\Config;
class ImagickImageTest extends ImageTest {
public function setUp() {
parent::setUp();
if(!extension_loaded("imagick")) {
$this->markTestSkipped("The Imagick extension is not available.");
return;
}
2016-03-08 21:50:18 +01:00
/** @skipUpgrade */
Config::inst()->update(
'SilverStripe\\Core\\Injector\\Injector',
'Image_Backend',
'SilverStripe\\Assets\\ImagickBackend'
);
}
}