function FileCopyTest::providerSuccessfulReuse

Same name in other branches
  1. 9 core/modules/migrate/tests/src/Kernel/process/FileCopyTest.php \Drupal\Tests\migrate\Kernel\process\FileCopyTest::providerSuccessfulReuse()
  2. 8.9.x core/modules/migrate/tests/src/Kernel/process/FileCopyTest.php \Drupal\Tests\migrate\Kernel\process\FileCopyTest::providerSuccessfulReuse()
  3. 10 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 114

Class

FileCopyTest
Tests the file_copy process plugin.

Namespace

Drupal\Tests\migrate\Kernel\process

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.