function FilePathTest::providerTestFilePath

Same name in other branches
  1. 9 core/modules/migrate_drupal_ui/tests/src/Functional/d7/FilePathTest.php \Drupal\Tests\migrate_drupal_ui\Functional\d7\FilePathTest::providerTestFilePath()
  2. 10 core/modules/migrate_drupal_ui/tests/src/Functional/d7/FilePathTest.php \Drupal\Tests\migrate_drupal_ui\Functional\d7\FilePathTest::providerTestFilePath()

Data provider of test dates for file path test.

Return value

string[][] An array of test data.

File

core/modules/migrate_drupal_ui/tests/src/Functional/d7/FilePathTest.php, line 170

Class

FilePathTest
Tests the Drupal 7 public and private file migrations.

Namespace

Drupal\Tests\migrate_drupal_ui\Functional\d7

Code

public static function providerTestFilePath() {
    return [
        'All source base paths are at temporary' => [
            'sites/default/private',
            'sites/default/files',
            '/tmp',
            '',
            '',
            '',
        ],
        'The private files are in a subdirectory' => [
            'sites/default/private',
            'sites/default/files',
            '/tmp',
            'abc',
            '',
            '',
        ],
        ' The public files are in a subdirectory' => [
            'sites/default/private',
            'sites/default/files',
            '/tmp',
            '',
            'def',
            '',
        ],
        'The private, public and temporary files are in separate subdirectories' => [
            'private',
            'files',
            '/tmp',
            'abc',
            'def',
            'xyz',
        ],
    ];
}

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