public function FileCopyTest::providerFileProcessBaseConstructor in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Unit/process/FileCopyTest.php \Drupal\Tests\migrate\Unit\process\FileCopyTest::providerFileProcessBaseConstructor()
- 9 core/modules/migrate/tests/src/Unit/process/FileCopyTest.php \Drupal\Tests\migrate\Unit\process\FileCopyTest::providerFileProcessBaseConstructor()
Data provider for testFileProcessBaseConstructor.
File
- core/
modules/ migrate/ tests/ src/ Unit/ process/ FileCopyTest.php, line 36
Class
- FileCopyTest
- Tests the file copy process plugin.
Namespace
Drupal\Tests\migrate\Unit\processCode
public function providerFileProcessBaseConstructor() {
return [
[
[
'file_exists' => 'replace',
],
FileSystemInterface::EXISTS_REPLACE,
],
[
[
'file_exists' => 'rename',
],
FileSystemInterface::EXISTS_RENAME,
],
[
[
'file_exists' => 'use existing',
],
FileSystemInterface::EXISTS_ERROR,
],
[
[
'file_exists' => 'foobar',
],
FileSystemInterface::EXISTS_REPLACE,
],
[
[],
FileSystemInterface::EXISTS_REPLACE,
],
];
}