update drupal

This commit is contained in:
Tessier
2020-10-15 11:59:37 +02:00
parent ebb5db14b5
commit d8b9162932
558 changed files with 5954 additions and 4475 deletions
@@ -48,7 +48,7 @@ class LanguageDependencyInjectionTest extends LanguageTestBase {
$this->fail('Expected DeleteDefaultLanguageException thrown.');
}
catch (DeleteDefaultLanguageException $e) {
$this->pass('Expected DeleteDefaultLanguageException thrown.');
// Expected exception; just continue testing.
}
// Re-save the previous default language and the delete should work.
@@ -75,7 +75,33 @@ class LanguageContentTaxonomyVocabularySettingsTest extends MigrateSqlSourceTest
],
];
// Test without a language column in the database.
$tests[1] = $tests[0];
foreach ($tests[1]['source_data']['vocabulary'] as $key => $row) {
unset($tests[1]['source_data']['vocabulary'][$key]['language']);
}
$tests[1]['source_data']['variable'] = [
[
'name' => 'i18ntaxonomy_vocabulary',
'value' => 'a:4:{i:1;s:1:"0";i:2;s:1:"0";i:3;s:1:"3";i:5;s:1:"1";}',
],
];
$tests[1]['expected_data'] = [
[
'vid' => 1,
'state' => 0,
],
[
'vid' => 2,
'state' => 0,
],
];
// Test without a i18ntaxonomy_vocabulary variable.
$tests[2] = $tests[1];
unset($tests[2]['source_data']['variable']);
return $tests;
}
}
@@ -55,7 +55,7 @@ class LanguageDomainsTest extends MigrateProcessTestCase {
'es' => 'es.example.com',
'hu' => 'hu.example.com',
];
$value = $this->plugin->transform($source, $this->migrateExecutable, $this->row, 'destinationproperty');
$value = $this->plugin->transform($source, $this->migrateExecutable, $this->row, 'destination_property');
$this->assertSame($value, $expected);
}
@@ -50,7 +50,7 @@ class LanguageNegotiationTest extends MigrateProcessTestCase {
'language-selected' => -6,
],
];
$value = $this->plugin->transform($source, $this->migrateExecutable, $this->row, 'destinationproperty');
$value = $this->plugin->transform($source, $this->migrateExecutable, $this->row, 'destination_property');
$this->assertSame($value, $expected);
}
@@ -70,7 +70,7 @@ class LanguageNegotiationTest extends MigrateProcessTestCase {
'language-url-fallback' => 1,
],
];
$value = $this->plugin->transform($source, $this->migrateExecutable, $this->row, 'destinationproperty');
$value = $this->plugin->transform($source, $this->migrateExecutable, $this->row, 'destination_property');
$this->assertSame($value, $expected);
}
@@ -81,7 +81,7 @@ class LanguageNegotiationTest extends MigrateProcessTestCase {
$this->plugin = new LanguageNegotiation([], 'map', []);
$this->expectException(MigrateException::class);
$this->expectExceptionMessage('The input should be an array');
$this->plugin->transform('foo', $this->migrateExecutable, $this->row, 'destinationproperty');
$this->plugin->transform('foo', $this->migrateExecutable, $this->row, 'destination_property');
}
}
@@ -27,7 +27,7 @@ class LanguageTypesTest extends MigrateProcessTestCase {
1 => 'language_content',
2 => 'language_interface',
];
$value = $this->plugin->transform($source, $this->migrateExecutable, $this->row, 'destinationproperty');
$value = $this->plugin->transform($source, $this->migrateExecutable, $this->row, 'destination_property');
$this->assertSame($value, $expected);
}
@@ -44,7 +44,7 @@ class LanguageTypesTest extends MigrateProcessTestCase {
$expected = [
0 => 'language_interface',
];
$value = $this->plugin->transform($source, $this->migrateExecutable, $this->row, 'destinationproperty');
$value = $this->plugin->transform($source, $this->migrateExecutable, $this->row, 'destination_property');
$this->assertSame($value, $expected);
}
@@ -55,7 +55,7 @@ class LanguageTypesTest extends MigrateProcessTestCase {
$this->plugin = new LanguageTypes([], 'map', []);
$this->expectException(MigrateException::class);
$this->expectExceptionMessage('The input should be an array');
$this->plugin->transform('foo', $this->migrateExecutable, $this->row, 'destinationproperty');
$this->plugin->transform('foo', $this->migrateExecutable, $this->row, 'destination_property');
}
}