function ImageAdminStylesTest::testImageStyleAccess
Tests access for the image style listing.
File
- 
              core/
modules/ image/ tests/ src/ Functional/ ImageAdminStylesTest.php, line 522  
Class
- ImageAdminStylesTest
 - Tests creation, deletion, and editing of image styles and effects.
 
Namespace
Drupal\Tests\image\FunctionalCode
public function testImageStyleAccess() {
  $style = ImageStyle::create([
    'name' => 'style_foo',
    'label' => $this->randomString(),
  ]);
  $style->save();
  $this->drupalGet('admin/config/media/image-styles');
  $this->clickLink('Edit');
  $this->assertSession()
    ->pageTextContains("Select a new effect");
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.