function ImageFieldDisplayTest::testImageFieldFormattersPrivate

Test image formatters on node display for private files.

File

drupal/core/modules/image/lib/Drupal/image/Tests/ImageFieldDisplayTest.php, line 40
Definition of Drupal\image\Tests\ImageFieldDisplayTest.

Class

ImageFieldDisplayTest
Test class to check that formatters and display settings are working.

Namespace

Drupal\image\Tests

Code

function testImageFieldFormattersPrivate() {

  // Remove access content permission from anonymous users.
  user_role_change_permissions(DRUPAL_ANONYMOUS_RID, array(
    'access content' => FALSE,
  ));
  $this
    ->_testImageFieldFormatters('private');
}