protected function TestImageStyleConfiguration::modifyConfiguration in Configuration Management 7.2
Perform changes in the configuration and save those changes into the active store.
Overrides ConfigurationHandlerBaseTestCase::modifyConfiguration
File
- tests/
handlers/ TestImageStyleConfiguration.test, line 121 - Tests for Configuration Management: Image Styles.
Class
- TestImageStyleConfiguration
- @file Tests for Configuration Management: Image Styles.
Code
protected function modifyConfiguration() {
$web_user = $this
->drupalCreateUser(array(
'administer image styles',
));
$this
->drupalLogin($web_user);
$edit = array();
$edit['data[width]'] = 200;
$edit['data[height]'] = 200;
$this
->drupalPost('admin/config/media/image-styles/edit/custom/effects/1', $edit, t('Update effect'));
$this
->assertRaw(t('The image effect was successfully applied.'));
drupal_static_reset('image_styles');
}