You are here

protected function MediaEntityReferenceTest::setUp in Entity Share 8.2

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

Overrides EntityShareClientFunctionalTestBase::setUp

File

modules/entity_share_client/tests/src/Functional/MediaEntityReferenceTest.php, line 77

Class

MediaEntityReferenceTest
Functional test class for media entity reference field.

Namespace

Drupal\Tests\entity_share_client\Functional

Code

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

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