function MigrationTest::testGetTrackLastImported
Same name in other branches
- 9 core/modules/migrate/tests/src/Kernel/Plugin/MigrationTest.php \Drupal\Tests\migrate\Kernel\Plugin\MigrationTest::testGetTrackLastImported()
- 8.9.x core/modules/migrate/tests/src/Kernel/Plugin/MigrationTest.php \Drupal\Tests\migrate\Kernel\Plugin\MigrationTest::testGetTrackLastImported()
Tests Migration::getTrackLastImported()
@covers ::getTrackLastImported @covers ::isTrackLastImported
@group legacy
File
-
core/
modules/ migrate/ tests/ src/ Kernel/ Plugin/ MigrationTest.php, line 158
Class
- MigrationTest
- Tests the migration plugin.
Namespace
Drupal\Tests\migrate\Kernel\PluginCode
public function testGetTrackLastImported() : void {
$this->expectDeprecation('Drupal\\migrate\\Plugin\\Migration::setTrackLastImported() 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');
$this->expectDeprecation('Drupal\\migrate\\Plugin\\Migration::getTrackLastImported() 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');
$this->expectDeprecation('Drupal\\migrate\\Plugin\\Migration::isTrackLastImported() 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 = \Drupal::service('plugin.manager.migration')->createStubMigration([]);
$migration->setTrackLastImported(TRUE);
$this->assertEquals(TRUE, $migration->getTrackLastImported());
$this->assertEquals(TRUE, $migration->isTrackLastImported());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.