protected function TestImageStyleConfiguration::isModified in Configuration Management 7.2
Return TRUE if the configuration is modified in the active store.
Overrides ConfigurationHandlerBaseTestCase::isModified
File
- tests/
handlers/ TestImageStyleConfiguration.test, line 65 - Tests for Configuration Management: Image Styles.
Class
- TestImageStyleConfiguration
- @file Tests for Configuration Management: Image Styles.
Code
protected function isModified($config) {
$modified = FALSE;
$image_style = image_style_load('custom');
$this
->verbose(print_r($image_style, TRUE));
$data = current($image_style['effects']);
$modified = $data['data']['width'] == '200';
$modified = $data['data']['height'] == '200';
return $modified;
}