public function FileUriTest::testTemporary in Drupal 10
Same name and namespace in other branches
- 8 core/modules/file/tests/src/Unit/Plugin/migrate/process/d6/FileUriTest.php \Drupal\Tests\file\Unit\Plugin\migrate\process\d6\FileUriTest::testTemporary()
- 9 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 60
Class
- FileUriTest
- @coversDefaultClass \Drupal\file\Plugin\migrate\process\d6\FileUri @group file
Namespace
Drupal\Tests\file\Unit\Plugin\migrate\process\d6Code
public function testTemporary() {
$value = [
'/tmp/bar.png',
'sites/default/files',
'/tmp',
TRUE,
];
$this
->assertEquals('temporary://bar.png', $this
->doTransform($value));
}