protected function FileTest::setUp in Entity Share 8.2
Same name and namespace in other branches
- 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\FunctionalCode
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();
}