You are here

public function FileCopyTest::providerSuccessfulReuse in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate/tests/src/Kernel/process/FileCopyTest.php \Drupal\Tests\migrate\Kernel\process\FileCopyTest::providerSuccessfulReuse()
  2. 9 core/modules/migrate/tests/src/Kernel/process/FileCopyTest.php \Drupal\Tests\migrate\Kernel\process\FileCopyTest::providerSuccessfulReuse()

Provides the source and destination path files.

File

core/modules/migrate/tests/src/Kernel/process/FileCopyTest.php, line 112

Class

FileCopyTest
Tests the file_copy process plugin.

Namespace

Drupal\Tests\migrate\Kernel\process

Code

public function providerSuccessfulReuse() {
  return [
    [
      'local_source_path' => static::getDrupalRoot() . '/core/tests/fixtures/files/image-test.jpg',
      'local_destination_path' => 'public://file1.jpg',
    ],
    [
      'remote_source_path' => 'https://www.drupal.org/favicon.ico',
      'remote_destination_path' => 'public://file2.jpg',
    ],
  ];
}