You are here

public function FileUriTest::testPrivateUnknownBasePath in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/file/tests/src/Unit/Plugin/migrate/process/d6/FileUriTest.php \Drupal\Tests\file\Unit\Plugin\migrate\process\d6\FileUriTest::testPrivateUnknownBasePath()

File

core/modules/file/tests/src/Unit/Plugin/migrate/process/d6/FileUriTest.php, line 50

Class

FileUriTest
@coversDefaultClass \Drupal\file\Plugin\migrate\process\d6\FileUri @group file

Namespace

Drupal\Tests\file\Unit\Plugin\migrate\process\d6

Code

public function testPrivateUnknownBasePath() {
  $value = [
    '/path/to/private/files/baz.gif',
    'sites/default/files',
    '/tmp',
    FALSE,
  ];
  $this
    ->assertEquals('private://path/to/private/files/baz.gif', $this
    ->doTransform($value));
}