function LinkFieldTest::testAlterFieldInstanceMigration
Same name in other branches
- 8.9.x core/modules/link/tests/src/Kernel/Plugin/migrate/field/d7/LinkFieldTest.php \Drupal\Tests\link\Kernel\Plugin\migrate\field\d7\LinkFieldTest::testAlterFieldInstanceMigration()
- 10 core/modules/link/tests/src/Kernel/Plugin/migrate/field/d7/LinkFieldTest.php \Drupal\Tests\link\Kernel\Plugin\migrate\field\d7\LinkFieldTest::testAlterFieldInstanceMigration()
- 11.x core/modules/link/tests/src/Kernel/Plugin/migrate/field/d7/LinkFieldTest.php \Drupal\Tests\link\Kernel\Plugin\migrate\field\d7\LinkFieldTest::testAlterFieldInstanceMigration()
@covers ::alterFieldInstanceMigration
File
-
core/
modules/ link/ tests/ src/ Kernel/ Plugin/ migrate/ field/ d7/ LinkFieldTest.php, line 56
Class
- LinkFieldTest
- @coversDefaultClass \Drupal\link\Plugin\migrate\field\d7\LinkField @group link
Namespace
Drupal\Tests\link\Kernel\Plugin\migrate\field\d7Code
public function testAlterFieldInstanceMigration($method = 'alterFieldInstanceMigration') {
$this->plugin
->{$method}($this->migration);
$expected = [
'plugin' => 'static_map',
'source' => 'settings/title',
'bypass' => TRUE,
'map' => [
'disabled' => DRUPAL_DISABLED,
'optional' => DRUPAL_OPTIONAL,
'required' => DRUPAL_REQUIRED,
],
];
$this->assertSame($expected, $this->migration
->getProcess());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.