You are here

protected function FileTest::setUp in Entity Share 8.3

Same name and namespace in other branches
  1. 8.2 modules/entity_share_client/tests/src/Functional/FileTest.php \Drupal\Tests\entity_share_client\Functional\FileTest::setUp()

@SuppressWarnings(PHPMD.UndefinedVariable) Bug in PHPMD,

Overrides EntityShareClientFunctionalTestBase::setUp

See also

https://github.com/phpmd/phpmd/issues/714

File

modules/entity_share_client/tests/src/Functional/FileTest.php, line 83

Class

FileTest
Functional test class for file field.

Namespace

Drupal\Tests\entity_share_client\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->getTestFiles('image');

  // Special case for the images created using native helper method.
  if (isset(static::$filesData['public_jpg'])) {
    $this->filesSize['public_jpg'] = filesize(static::$filesData['public_jpg']['uri']);
  }
  if (isset(static::$filesData['public_png'])) {
    $this->filesSize['public_png'] = filesize(static::$filesData['public_png']['uri']);
  }
  $this
    ->postSetupFixture();
}