function MigrationTest::testTrackLastImportedDeprecation
Test trackLastImported deprecation message in Migration constructor.
@group legacy
File
-
core/
modules/ migrate/ tests/ src/ Unit/ MigrationTest.php, line 262
Class
- MigrationTest
- @coversDefaultClass \Drupal\migrate\Plugin\Migration
Namespace
Drupal\Tests\migrate\UnitCode
public function testTrackLastImportedDeprecation() : void {
$this->expectDeprecation("The key 'trackLastImported' is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3282894");
$migration_plugin_manager = $this->createMock(MigrationPluginManagerInterface::class);
$source_plugin_manager = $this->createMock(MigrateSourcePluginManager::class);
$process_Plugin_manager = $this->createMock(MigratePluginManagerInterface::class);
$destination_plugin_manager = $this->createMock(MigrateDestinationPluginManager::class);
$id_map_plugin_manager = $this->createMock(MigratePluginManagerInterface::class);
new Migration([], 'test', [
'trackLastImported' => TRUE,
], $migration_plugin_manager, $source_plugin_manager, $process_Plugin_manager, $destination_plugin_manager, $id_map_plugin_manager);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.