function ImageFieldDisplayTest::testImageFieldFormattersPrivate in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/image/src/Tests/ImageFieldDisplayTest.php \Drupal\image\Tests\ImageFieldDisplayTest::testImageFieldFormattersPrivate()
Test image formatters on node display for private files.
File
- core/
modules/ image/ src/ Tests/ ImageFieldDisplayTest.php, line 41 - Contains \Drupal\image\Tests\ImageFieldDisplayTest.
Class
- ImageFieldDisplayTest
- Tests the display of image fields.
Namespace
Drupal\image\TestsCode
function testImageFieldFormattersPrivate() {
// Remove access content permission from anonymous users.
user_role_change_permissions(RoleInterface::ANONYMOUS_ID, array(
'access content' => FALSE,
));
$this
->_testImageFieldFormatters('private');
}