function FileUriTest::doTransform
Same name and namespace in other branches
- 9 core/modules/file/tests/src/Unit/Plugin/migrate/process/d6/FileUriTest.php \Drupal\Tests\file\Unit\Plugin\migrate\process\d6\FileUriTest::doTransform()
- 8.9.x core/modules/file/tests/src/Unit/Plugin/migrate/process/d6/FileUriTest.php \Drupal\Tests\file\Unit\Plugin\migrate\process\d6\FileUriTest::doTransform()
- 10 core/modules/file/tests/src/Unit/Plugin/migrate/process/d6/FileUriTest.php \Drupal\Tests\file\Unit\Plugin\migrate\process\d6\FileUriTest::doTransform()
Performs the transform process.
5 calls to FileUriTest::doTransform()
- FileUriTest::testPrivate in core/
modules/ file/ tests/ src/ Unit/ Plugin/ migrate/ process/ d6/ FileUriTest.php - Tests with a private scheme.
- FileUriTest::testPrivateUnknownBasePath in core/
modules/ file/ tests/ src/ Unit/ Plugin/ migrate/ process/ d6/ FileUriTest.php - Tests with a private base path that is not known.
- FileUriTest::testPublic in core/
modules/ file/ tests/ src/ Unit/ Plugin/ migrate/ process/ d6/ FileUriTest.php - Tests with a public scheme.
- FileUriTest::testPublicUnknownBasePath in core/
modules/ file/ tests/ src/ Unit/ Plugin/ migrate/ process/ d6/ FileUriTest.php - Tests with a base path that is not known.
- FileUriTest::testTemporary in core/
modules/ file/ tests/ src/ Unit/ Plugin/ migrate/ process/ d6/ FileUriTest.php - Tests the temporary scheme.
File
-
core/
modules/ file/ tests/ src/ Unit/ Plugin/ migrate/ process/ d6/ FileUriTest.php, line 95
Class
- FileUriTest
- @coversDefaultClass \Drupal\file\Plugin\migrate\process\d6\FileUri[[api-linebreak]] @group file
Namespace
Drupal\Tests\file\Unit\Plugin\migrate\process\d6Code
protected function doTransform(array $value) {
$executable = new MigrateExecutable($this->getMigration());
$row = new Row();
return (new FileUri([], 'file_uri', []))->transform($value, $executable, $row, 'foo');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.