37 lines
682 B
PHP
Raw Normal View History

<?php
2016-10-14 14:30:05 +13:00
namespace SilverStripe\ORM\Tests;
require_once(__DIR__ . "/ImageTest.php");
use SilverStripe\Core\Config\Config;
2016-09-09 18:43:05 +12:00
use SilverStripe\Core\Cache;
2016-10-14 14:30:05 +13:00
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() {
2016-09-09 18:43:05 +12:00
$cache = Cache::factory('GDBackend_Manipulations');
$cache->clean(Zend_Cache::CLEANING_MODE_ALL);
parent::tearDown();
}
}