You are here

public function ImageFieldDisplayTest::testImageFieldFormattersPrivate in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/image/tests/src/Functional/ImageFieldDisplayTest.php \Drupal\Tests\image\Functional\ImageFieldDisplayTest::testImageFieldFormattersPrivate()

Test image formatters on node display for private files.

File

core/modules/image/tests/src/Functional/ImageFieldDisplayTest.php, line 52

Class

ImageFieldDisplayTest
Tests the display of image fields.

Namespace

Drupal\Tests\image\Functional

Code

public function testImageFieldFormattersPrivate() {

  // Remove access content permission from anonymous users.
  user_role_change_permissions(RoleInterface::ANONYMOUS_ID, [
    'access content' => FALSE,
  ]);
  $this
    ->_testImageFieldFormatters('private');
}