protected function MediaEntityReferenceTest::setUp in Entity Share 8.3
Same name and namespace in other branches
- 8.2 modules/entity_share_client/tests/src/Functional/MediaEntityReferenceTest.php \Drupal\Tests\entity_share_client\Functional\MediaEntityReferenceTest::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/ MediaEntityReferenceTest.php, line 79
Class
- MediaEntityReferenceTest
- Functional test class for media entity reference field.
Namespace
Drupal\Tests\entity_share_client\FunctionalCode
protected function setUp() : void {
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();
}