Commit da05acc2 authored by heddn's avatar heddn Committed by heddn

Issue #3019796 by heddn, mikelutz: Run D.O. tests with deprecation notices enabled

parent 3e25c707
......@@ -69,10 +69,9 @@ class MigrationGroupTest extends KernelTestBase {
$migration->save();
$expected_config = [
'migration_group' => $group_id,
'label' => 'Unaffected by the group',
'migration_tags' => ['Drupal 7'],
'source' => [
'getMigrationTags' => ['Drupal 7'],
'getSourceConfiguration' => [
'plugin' => 'empty',
'constants' => [
'entity_type' => 'user',
......@@ -80,13 +79,13 @@ class MigrationGroupTest extends KernelTestBase {
'cardinality' => '3',
],
],
'destination' => ['plugin' => 'field_storage_config'],
'getDestinationConfiguration' => ['plugin' => 'field_storage_config'],
];
/** @var \Drupal\migrate\Plugin\MigrationInterface $loaded_migration */
/** @var \Drupal\migrate_plus\Plugin\MigrationInterface $loaded_migration */
$loaded_migration = $this->container->get('plugin.manager.migration')
->createInstance('specific_migration');
foreach ($expected_config as $key => $expected_value) {
$actual_value = $loaded_migration->get($key);
foreach ($expected_config as $method => $expected_value) {
$actual_value = call_user_func([$loaded_migration, $method]);
$this->assertEquals($expected_value, $actual_value);
}
}
......
......@@ -7,13 +7,13 @@ use Drupal\Core\Field\FieldStorageDefinitionInterface;
use Drupal\Core\Language\LanguageInterface;
use Drupal\field\Entity\FieldConfig;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\field\Tests\EntityReference\EntityReferenceTestTrait;
use Drupal\KernelTests\KernelTestBase;
use Drupal\migrate\MigrateExecutable;
use Drupal\migrate\MigrateMessageInterface;
use Drupal\node\Entity\NodeType;
use Drupal\taxonomy\Entity\Term;
use Drupal\taxonomy\Entity\Vocabulary;
use Drupal\Tests\field\Traits\EntityReferenceTestTrait;
/**
* Tests the migration plugin.
......
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