You are here

public function ImageAdminStylesTest::testImageStyleAccess in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/image/src/Tests/ImageAdminStylesTest.php \Drupal\image\Tests\ImageAdminStylesTest::testImageStyleAccess()

Tests access for the image style listing.

File

core/modules/image/src/Tests/ImageAdminStylesTest.php, line 460
Contains \Drupal\image\Tests\ImageAdminStylesTest.

Class

ImageAdminStylesTest
Tests creation, deletion, and editing of image styles and effects.

Namespace

Drupal\image\Tests

Code

public function testImageStyleAccess() {
  $style = entity_create('image_style', array(
    'name' => 'style_foo',
    'label' => $this
      ->randomString(),
  ));
  $style
    ->save();
  $this
    ->drupalGet('admin/config/media/image-styles');
  $this
    ->clickLink(t('Edit'));
  $this
    ->assertRaw(t('Select a new effect'));
}