function FileCopyTest::providerFileProcessBaseConstructor

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

Class

FileCopyTest
Tests the file copy process plugin.

Namespace

Drupal\Tests\migrate\Unit\process

Code

public static function providerFileProcessBaseConstructor() {
    return [
        [
            [
                'file_exists' => 'replace',
            ],
            FileExists::Replace,
        ],
        [
            [
                'file_exists' => 'rename',
            ],
            FileExists::Rename,
        ],
        [
            [
                'file_exists' => 'use existing',
            ],
            FileExists::Error,
        ],
        [
            [
                'file_exists' => 'foobar',
            ],
            FileExists::Replace,
        ],
        [
            [],
            FileExists::Replace,
        ],
    ];
}

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