mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
37 lines
682 B
PHP
37 lines
682 B
PHP
<?php
|
|
|
|
namespace SilverStripe\ORM\Tests;
|
|
|
|
|
|
require_once(__DIR__ . "/ImageTest.php");
|
|
|
|
use SilverStripe\Core\Config\Config;
|
|
use SilverStripe\Core\Cache;
|
|
use Zend_Cache;
|
|
|
|
|
|
class GDImageTest extends ImageTest {
|
|
|
|
public function setUp() {
|
|
parent::setUp();
|
|
|
|
if(!extension_loaded("gd")) {
|
|
$this->markTestSkipped("The GD extension is required");
|
|
return;
|
|
}
|
|
|
|
/** @skipUpgrade */
|
|
Config::inst()->update(
|
|
'SilverStripe\\Core\\Injector\\Injector',
|
|
'Image_Backend',
|
|
'SilverStripe\\Assets\\GDBackend'
|
|
);
|
|
}
|
|
|
|
public function tearDown() {
|
|
$cache = Cache::factory('GDBackend_Manipulations');
|
|
$cache->clean(Zend_Cache::CLEANING_MODE_ALL);
|
|
parent::tearDown();
|
|
}
|
|
}
|