2012-10-25 00:28:39 +02:00
|
|
|
<?php
|
2016-08-19 00:51:35 +02:00
|
|
|
|
2016-10-14 03:30:05 +02:00
|
|
|
namespace SilverStripe\ORM\Tests;
|
|
|
|
|
|
|
|
use SilverStripe\Assets\ImagickBackend;
|
2016-08-19 00:51:35 +02:00
|
|
|
use SilverStripe\Core\Config\Config;
|
2016-10-14 03:30:05 +02:00
|
|
|
use SilverStripe\Core\Injector\Injector;
|
|
|
|
|
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 */
|
2016-10-14 03:30:05 +02:00
|
|
|
Config::inst()->update(Injector::class, 'Image_Backend', ImagickBackend::class);
|
2012-10-25 00:28:39 +02:00
|
|
|
}
|
|
|
|
}
|