Commit 68773eb7 authored by catch's avatar catch

Issue #2998666 by quietone, heddn: Warnings after D7 upgrade caused by rdf migration

parent 1506516d
......@@ -29,6 +29,7 @@ class MigrateUpgrade7Test extends MigrateUpgradeExecuteTestBase {
'aggregator',
'book',
'forum',
'rdf',
'statistics',
'migration_provider_test',
// Required for translation migrations.
......
......@@ -6,6 +6,12 @@ migration_tags:
source:
plugin: d7_rdf_mapping
process:
id:
plugin: concat
source:
- type
- bundle
delimiter: .
targetEntityType: type
bundle: bundle
types: types
......@@ -15,7 +21,12 @@ process:
process:
properties: predicates
datatype: datatype
datatype_callback/callable: callback
datatype_callback/callable:
plugin: static_map
source: callback
bypass: true
map:
date_iso8601: Drupal\rdf\CommonDataConverter::dateIso8601Value
mapping_type: type
destination:
plugin: entity:rdf_mapping
......
......@@ -98,7 +98,7 @@ public function testRdfMappingMigration() {
],
'datatype' => 'xsd:dateTime',
'datatype_callback' => [
'callable' => 'date_iso8601',
'callable' => 'Drupal\rdf\CommonDataConverter::dateIso8601Value',
],
],
'changed' => [
......@@ -107,7 +107,7 @@ public function testRdfMappingMigration() {
],
'datatype' => 'xsd:dateTime',
'datatype_callback' => [
'callable' => 'date_iso8601',
'callable' => 'Drupal\rdf\CommonDataConverter::dateIso8601Value',
],
],
'body' => [
......@@ -138,7 +138,7 @@ public function testRdfMappingMigration() {
],
'datatype' => 'xsd:dateTime',
'datatype_callback' => [
'callable' => 'date_iso8601',
'callable' => 'Drupal\rdf\CommonDataConverter::dateIso8601Value',
],
],
]
......@@ -165,7 +165,7 @@ public function testRdfMappingMigration() {
],
'datatype' => 'xsd:dateTime',
'datatype_callback' => [
'callable' => 'date_iso8601',
'callable' => 'Drupal\rdf\CommonDataConverter::dateIso8601Value',
],
],
'changed' => [
......@@ -174,7 +174,7 @@ public function testRdfMappingMigration() {
],
'datatype' => 'xsd:dateTime',
'datatype_callback' => [
'callable' => 'date_iso8601',
'callable' => 'Drupal\rdf\CommonDataConverter::dateIso8601Value',
],
],
'body' => [
......@@ -205,7 +205,7 @@ public function testRdfMappingMigration() {
],
'datatype' => 'xsd:dateTime',
'datatype_callback' => [
'callable' => 'date_iso8601',
'callable' => 'Drupal\rdf\CommonDataConverter::dateIso8601Value',
],
],
]
......@@ -238,7 +238,7 @@ public function testRdfMappingMigration() {
],
'datatype' => 'xsd:dateTime',
'datatype_callback' => [
'callable' => 'date_iso8601',
'callable' => 'Drupal\rdf\CommonDataConverter::dateIso8601Value',
],
],
'changed' => [
......@@ -247,7 +247,7 @@ public function testRdfMappingMigration() {
],
'datatype' => 'xsd:dateTime',
'datatype_callback' => [
'callable' => 'date_iso8601',
'callable' => 'Drupal\rdf\CommonDataConverter::dateIso8601Value',
],
],
'body' => [
......@@ -278,7 +278,7 @@ public function testRdfMappingMigration() {
],
'datatype' => 'xsd:dateTime',
'datatype_callback' => [
'callable' => 'date_iso8601',
'callable' => 'Drupal\rdf\CommonDataConverter::dateIso8601Value',
],
],
]
......@@ -304,7 +304,7 @@ public function testRdfMappingMigration() {
],
'datatype' => 'xsd:dateTime',
'datatype_callback' => [
'callable' => 'date_iso8601',
'callable' => 'Drupal\rdf\CommonDataConverter::dateIso8601Value',
],
],
'changed' => [
......@@ -313,7 +313,7 @@ public function testRdfMappingMigration() {
],
'datatype' => 'xsd:dateTime',
'datatype_callback' => [
'callable' => 'date_iso8601',
'callable' => 'Drupal\rdf\CommonDataConverter::dateIso8601Value',
],
],
'body' => [
......@@ -344,7 +344,7 @@ public function testRdfMappingMigration() {
],
'datatype' => 'xsd:dateTime',
'datatype_callback' => [
'callable' => 'date_iso8601',
'callable' => 'Drupal\rdf\CommonDataConverter::dateIso8601Value',
],
],
]
......@@ -384,6 +384,12 @@ public function testRdfMappingMigration() {
],
]
);
// Clear the map table and check that the migration runs successfully when
// the rdf mappings already exist.
$id_map = $this->getMigration('d7_rdf_mapping')->getIdMap();
$id_map->destroy();
$this->executeMigration('d7_rdf_mapping');
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment