You are here

public function FilePathTest::getSourcePath in Drupal 9

Gets the source base path for the Credential form.

Parameters

string $scheme: The file scheme.

2 calls to FilePathTest::getSourcePath()
FilePathTest::makeFiles in core/modules/migrate_drupal_ui/tests/src/Functional/d7/FilePathTest.php
Creates files for the test.
FilePathTest::testFilePath in core/modules/migrate_drupal_ui/tests/src/Functional/d7/FilePathTest.php
Executes all steps of migrations upgrade.

File

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

Class

FilePathTest
Tests the Drupal 7 public and private file migrations.

Namespace

Drupal\Tests\migrate_drupal_ui\Functional\d7

Code

public function getSourcePath($scheme) {
  $base_path = $this->localDirectory[$scheme] ?: '';

  // Puts the source files in the site temp directory.
  return $this->tempFilesDirectory . '/' . $base_path;
}