function FormatDateTest::testTransform
Same name in other branches
- 9 core/modules/migrate/tests/src/Unit/process/FormatDateTest.php \Drupal\Tests\migrate\Unit\process\FormatDateTest::testTransform()
- 8.9.x core/modules/migrate/tests/src/Unit/process/FormatDateTest.php \Drupal\Tests\migrate\Unit\process\FormatDateTest::testTransform()
- 10 core/modules/migrate/tests/src/Unit/process/FormatDateTest.php \Drupal\Tests\migrate\Unit\process\FormatDateTest::testTransform()
Tests transformation.
@covers ::transform
@dataProvider datesDataProvider
Parameters
$configuration: The configuration of the migration process plugin.
$value: The source value for the migration process plugin.
$expected: The expected value of the migration process plugin.
File
-
core/
modules/ migrate/ tests/ src/ Unit/ process/ FormatDateTest.php, line 93
Class
- FormatDateTest
- Tests the format date process plugin.
Namespace
Drupal\Tests\migrate\Unit\processCode
public function testTransform($configuration, $value, $expected) : void {
$this->plugin = new FormatDate($configuration, 'test_format_date', []);
$actual = $this->plugin
->transform($value, $this->migrateExecutable, $this->row, 'field_date');
$this->assertEquals($expected, $actual);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.