protected static property FileTest::$filesData 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::filesData
An array of data to generate physical files.
Type: array
File
- modules/
entity_share_client/ tests/ src/ Functional/ FileTest.php, line 39
Class
- FileTest
- Functional test class for file field.
Namespace
Drupal\Tests\entity_share_client\FunctionalCode
protected static $filesData = [
'public_file' => [
'filename' => 'test.txt',
'filemime' => 'text/plain',
'uri' => 'public://test.txt',
'file_content' => 'Drupal',
],
'public_file_sub_directory' => [
'filename' => 'test_sub_directory.txt',
'filemime' => 'text/plain',
'uri' => 'public://sub-directory/test_sub_directory.txt',
'file_content_callback' => 'generateBigFile',
],
'private_file_sub_directory' => [
'filename' => 'test_private.txt',
'filemime' => 'text/plain',
'uri' => 'private://sub-directory/test_private.txt',
'file_content' => 'Drupal',
],
'public_jpg' => [
'filename' => 'image-test.jpg',
'filemime' => 'image/jpeg',
'uri' => 'public://image-test.jpg',
],
'public_png' => [
'filename' => 'image-test.png',
'filemime' => 'image/png',
'uri' => 'public://image-test.png',
],
];