2012-10-25 00:28:39 +02:00
|
|
|
<?php
|
2016-08-19 00:51:35 +02:00
|
|
|
|
|
|
|
use SilverStripe\Core\Config\Config;
|
2012-10-25 00:28:39 +02:00
|
|
|
class ImagickImageTest extends ImageTest {
|
|
|
|
public function setUp() {
|
2015-06-10 01:16:11 +02:00
|
|
|
parent::setUp();
|
2015-07-16 12:12:15 +02:00
|
|
|
|
|
|
|
if(!extension_loaded("imagick")) {
|
2015-09-15 04:52:02 +02:00
|
|
|
$this->markTestSkipped("The Imagick extension is not available.");
|
2015-07-16 12:12:15 +02:00
|
|
|
return;
|
2015-09-15 04:52:02 +02:00
|
|
|
}
|
2016-03-08 21:50:18 +01:00
|
|
|
|
2016-08-19 00:51:35 +02:00
|
|
|
/** @skipUpgrade */
|
|
|
|
Config::inst()->update(
|
|
|
|
'SilverStripe\\Core\\Injector\\Injector',
|
|
|
|
'Image_Backend',
|
|
|
|
'SilverStripe\\Assets\\ImagickBackend'
|
|
|
|
);
|
2012-10-25 00:28:39 +02:00
|
|
|
}
|
|
|
|
}
|