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;
|
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
class ImagickImageTest extends ImageTest
|
|
|
|
{
|
|
|
|
public function setUp()
|
|
|
|
{
|
|
|
|
parent::setUp();
|
2015-07-16 12:12:15 +02:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
if (!extension_loaded("imagick")) {
|
|
|
|
$this->markTestSkipped("The Imagick extension is not available.");
|
|
|
|
return;
|
|
|
|
}
|
2016-03-08 21:50:18 +01:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
/**
|
|
|
|
* @skipUpgrade
|
|
|
|
*/
|
|
|
|
Config::inst()->update(Injector::class, 'Image_Backend', ImagickBackend::class);
|
|
|
|
}
|
2012-10-25 00:28:39 +02:00
|
|
|
}
|