diff --git a/core/modules/migrate_drupal/src/Plugin/CckFieldMigrateSourceInterface.php b/core/modules/migrate_drupal/src/Plugin/CckFieldMigrateSourceInterface.php index 6cdea25..45a4ebc 100644 --- a/core/modules/migrate_drupal/src/Plugin/CckFieldMigrateSourceInterface.php +++ b/core/modules/migrate_drupal/src/Plugin/CckFieldMigrateSourceInterface.php @@ -1,5 +1,10 @@ 1, 'field_test_link_url' => 'http://drupal.org/project/drupal', 'field_test_link_title' => 'Drupal project page', - 'field_test_link_attributes' => 's:6:"a:0:{}";', + 'field_test_link_attributes' => 's:32:"a:1:{s:6:"target";s:6:"_blank";}";";', )) ->values(array( 'nid' => 1, @@ -569,7 +569,7 @@ public function load() { 'field_test_identical2_value' => 1, 'field_test_link_url' => 'http://drupal.org/project/drupal', 'field_test_link_title' => 'Drupal project page', - 'field_test_link_attributes' => 's:6:"a:0:{}";', + 'field_test_link_attributes' => 's:32:"a:1:{s:6:"target";s:6:"_blank";}";', )) ->values(array( 'nid' => 2, diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateCckFieldValuesTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateCckFieldValuesTest.php index e7708b5..7920277 100644 --- a/core/modules/migrate_drupal/src/Tests/d6/MigrateCckFieldValuesTest.php +++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateCckFieldValuesTest.php @@ -158,7 +158,8 @@ public function testCckFields() { $this->assertIdentical($node->field_test_link->url, 'http://drupal.org/project/drupal'); $this->assertIdentical($node->field_test_link->title, 'Drupal project page'); $this->assertIdentical($node->field_test_link->route_parameters, []); - $this->assertIdentical($node->field_test_link->options, []); + $this->assertIdentical($node->field_test_link->options['attributes'], ['target' => '_blank']); + $this->assertIdentical($node->field_test_link->options['external'], TRUE); $planet_node = Node::load(3); $this->assertEqual($planet_node->field_multivalue->value, 33);