protected function FeaturesUserTestCase::_test_image in Features 7
Same name and namespace in other branches
- 7.2 tests/features.test \FeaturesUserTestCase::_test_image()
File
- tests/
features.test, line 116
Class
- FeaturesUserTestCase
- User permission component tests for Features
Code
protected function _test_image($op = 'load') {
switch ($op) {
case 'load':
return image_style_load('features_test');
case 'override':
$style = image_style_load('features_test');
$style = image_style_save($style);
foreach ($style['effects'] as $effect) {
$effect['data']['width'] = '120';
image_effect_save($effect);
}
break;
}
}