You are here

protected function FileTest::setUp in Entity Share 8.2

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

Overrides EntityShareClientFunctionalTestBase::setUp

File

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

Class

FileTest
Functional test class for file field.

Namespace

Drupal\Tests\entity_share_client\Functional

Code

protected function setUp() {
  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();
}