_testImageFieldFormatters example

protected static $modules = ['field_ui'];

  /** * {@inheritdoc} */
  protected $defaultTheme = 'stark';

  /** * Tests image formatters on node display for public files. */
  public function testImageFieldFormattersPublic() {
    $this->_testImageFieldFormatters('public');
  }

  /** * Tests image formatters on node display for private files. */
  public function testImageFieldFormattersPrivate() {
    // Remove access content permission from anonymous users.     user_role_change_permissions(RoleInterface::ANONYMOUS_ID, ['access content' => FALSE]);
    $this->_testImageFieldFormatters('private');
  }

  
Home | Imprint | This part of the site doesn't use cookies.