You are here

protected static property MediaEntityReferenceTest::$filesData in Entity Share 8.3

Same name and namespace in other branches
  1. 8.2 modules/entity_share_client/tests/src/Functional/MediaEntityReferenceTest.php \Drupal\Tests\entity_share_client\Functional\MediaEntityReferenceTest::filesData

An array of data to generate physical files.

Type: array

File

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

Class

MediaEntityReferenceTest
Functional test class for media entity reference field.

Namespace

Drupal\Tests\entity_share_client\Functional

Code

protected static $filesData = [
  'file_audio' => [
    'filename' => 'sample.mp3',
    'filemime' => 'audio/mpeg',
    'uri' => 'public://sample.mp3',
    'file_content_callback' => 'getMediaEntityReferenceTestFiles',
  ],
  'file_document' => [
    'filename' => 'sample.pdf',
    'filemime' => 'application/pdf',
    'uri' => 'public://sample.pdf',
    'file_content_callback' => 'getMediaEntityReferenceTestFiles',
  ],
  'file_image' => [
    'filename' => 'image-test.jpg',
    'filemime' => 'image/jpeg',
    'uri' => 'public://image-test.jpg',
  ],
  'file_video' => [
    'filename' => 'sample.mp4',
    'filemime' => 'video/mp4',
    'uri' => 'public://sample.mp4',
    'file_content_callback' => 'getMediaEntityReferenceTestFiles',
  ],
];