function FileUriTest::testTemporary

Same name in other branches
  1. 9 core/modules/file/tests/src/Unit/Plugin/migrate/process/d6/FileUriTest.php \Drupal\Tests\file\Unit\Plugin\migrate\process\d6\FileUriTest::testTemporary()
  2. 8.9.x core/modules/file/tests/src/Unit/Plugin/migrate/process/d6/FileUriTest.php \Drupal\Tests\file\Unit\Plugin\migrate\process\d6\FileUriTest::testTemporary()
  3. 11.x core/modules/file/tests/src/Unit/Plugin/migrate/process/d6/FileUriTest.php \Drupal\Tests\file\Unit\Plugin\migrate\process\d6\FileUriTest::testTemporary()

File

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

Class

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

Namespace

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

Code

public function testTemporary() : void {
    $value = [
        '/tmp/bar.png',
        'sites/default/files',
        '/tmp',
        TRUE,
    ];
    $this->assertEquals('temporary://bar.png', $this->doTransform($value));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.