You are here

public function FilePathTest::getManagedFiles in Drupal 9

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

Gets the file data.

Return value

string[][] Data from the source file_managed table.

1 call to FilePathTest::getManagedFiles()
FilePathTest::makeFiles in core/modules/migrate_drupal_ui/tests/src/Functional/d7/FilePathTest.php
Creates files for the test.

File

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

Class

FilePathTest
Tests the Drupal 7 public and private file migrations.

Namespace

Drupal\Tests\migrate_drupal_ui\Functional\d7

Code

public function getManagedFiles() {
  return [
    [
      'filename' => 'cube.jpeg',
      'uri' => 'public://cube.jpeg',
    ],
    [
      'filename' => 'ds9.txt',
      'uri' => 'public://ds9.txt',
    ],
    [
      'filename' => 'Babylon5.txt',
      'uri' => 'private://Babylon5.txt',
    ],
    [
      'filename' => 'TerokNor.txt',
      'uri' => 'temporary://TerokNor.txt',
    ],
  ];
}