silverstripe-framework/tests/php/ORM/ImagickImageTest.php

26 lines
546 B
PHP
Raw Normal View History

<?php
2016-10-14 03:30:05 +02:00
namespace SilverStripe\ORM\Tests;
use SilverStripe\Assets\ImagickBackend;
use SilverStripe\Core\Config\Config;
2016-10-14 03:30:05 +02:00
use SilverStripe\Core\Injector\Injector;
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(Injector::class, 'Image_Backend', ImagickBackend::class);
}
}