function ImageAdminUiTestCase::testAddEffectHelpText
Test if the help text is available on the add effect form.
File
-
modules/
image/ image.test, line 535
Class
- ImageAdminUiTestCase
- Tests the administrative user interface.
Code
function testAddEffectHelpText() {
// Create a random image style.
$style = $this->createRandomStyle();
// Open the add effect form and check for the help text.
$this->drupalGet($style['path'] . '/add/image_crop');
$this->assertText(t('Cropping will remove portions of an image to make it the specified dimensions.'), 'The image style effect help text was displayed on the add effect page.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.