public function LinkCckTest::testProcessCckFieldValues in Drupal 8
@covers ::processCckFieldValues @expectedDeprecation LinkField is deprecated in Drupal 8.3.x and will be be removed before Drupal 9.0.x. Use \Drupal\link\Plugin\migrate\field\d6\LinkField instead.
File
- core/
modules/ link/ tests/ src/ Unit/ Plugin/ migrate/ cckfield/ LinkCckTest.php, line 51
Class
- LinkCckTest
- @coversDefaultClass \Drupal\link\Plugin\migrate\cckfield\LinkField @group link @group legacy
Namespace
Drupal\Tests\link\Unit\Plugin\migrate\cckfieldCode
public function testProcessCckFieldValues() {
$this->plugin
->processCckFieldValues($this->migration, 'somefieldname', []);
$expected = [
'plugin' => 'd6_cck_link',
'source' => 'somefieldname',
];
$this
->assertSame($expected, $this->migration
->getProcess());
}