You are here

public function FileImportExportTest::testFileImportExportNoCopy in Acquia Content Hub 8.2

Tests import/export of files with schemes where file copy isn't expected.

@dataProvider testFileImportExportNoCopyDataProvider

Parameters

int $delta: Delta.

array $validate_data: Data.

string $export_type: Entity type ID.

string $export_uuid: Uuid.

Throws

\Drupal\Core\Entity\EntityStorageException

\Exception

File

tests/src/Kernel/FileImportExportTest.php, line 124

Class

FileImportExportTest
Tests that files are properly exported and imported.

Namespace

Drupal\Tests\acquia_contenthub\Kernel

Code

public function testFileImportExportNoCopy($delta, array $validate_data, $export_type, $export_uuid) {

  // This only asserts that the file entities were created successfully
  // with the expected values. No assertion for the content of the files
  // themselves as files with the given schemes aren't expected to be
  // copied.
  parent::contentEntityImportExport($delta, $validate_data, $export_type, $export_uuid);
}