You are here

public function ResponsiveImageFieldDisplayTest::testResponsiveImageFieldFormattersPrivate in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php \Drupal\responsive_image\Tests\ResponsiveImageFieldDisplayTest::testResponsiveImageFieldFormattersPrivate()

Tests responsive image formatters on node display for private files.

File

core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php, line 82
Contains \Drupal\responsive_image\Tests\ResponsiveImageFieldDisplayTest.

Class

ResponsiveImageFieldDisplayTest
Tests responsive image display formatter.

Namespace

Drupal\responsive_image\Tests

Code

public function testResponsiveImageFieldFormattersPrivate() {
  $this
    ->addTestImageStyleMappings();

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