You are here

protected function FeaturesUserTestCase::_test_imagecache in Features 6

File

tests/features.test, line 153

Class

FeaturesUserTestCase
User permission component tests for Features

Code

protected function _test_imagecache($op = 'load', &$test) {
  switch ($op) {
    case 'load':
      return imagecache_preset_by_name('features_test');
    case 'override':
      $preset = imagecache_preset_by_name('features_test');
      $preset = imagecache_preset_save($preset);
      foreach ($preset['actions'] as $action) {
        $action['data']['width'] = '50%';
        $action['presetid'] = $preset['presetid'];
        imagecache_action_save($action);
      }
      break;
  }
}