You are here

public function FileUriTest::testPublic in Zircon Profile 8

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

File

core/modules/file/tests/src/Unit/Plugin/migrate/process/d6/FileUriTest.php, line 26
Contains \Drupal\Tests\file\Unit\Plugin\migrate\process\d6\FileUriTest.

Class

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

Namespace

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

Code

public function testPublic() {
  $value = [
    'sites/default/files/foo.jpg',
    'sites/default/files',
    '/tmp',
    TRUE,
  ];
  $this
    ->assertEquals('public://foo.jpg', $this
    ->doTransform($value));
}