You are here

public function FilePathTest::providerTestFilePath in Drupal 10

Same name and namespace 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()

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 167

Class

FilePathTest
Tests the Drupal 7 public and private file migrations.

Namespace

Drupal\Tests\migrate_drupal_ui\Functional\d7

Code

public 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',
    ],
  ];
}