Test if the help text is available on the add effect form.

File

modules/image/image.test, line 535
Tests for image.module.

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.');
}