You are here

function ImageAdminUiTestCase::testAddEffectHelpText in Drupal 7

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

File

modules/image/image.test, line 525
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.');
}