function 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\d7Code
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',
    ],
  ];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.