public function MigrationTest::testGetTrackLastImported in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate/tests/src/Kernel/Plugin/MigrationTest.php \Drupal\Tests\migrate\Kernel\Plugin\MigrationTest::testGetTrackLastImported()
Tests Migration::getTrackLastImported()
@covers ::getTrackLastImported @covers ::isTrackLastImported
File
- core/
modules/ migrate/ tests/ src/ Kernel/ Plugin/ MigrationTest.php, line 172
Class
- MigrationTest
- Tests the migration plugin.
Namespace
Drupal\Tests\migrate\Kernel\PluginCode
public function testGetTrackLastImported() {
$migration = \Drupal::service('plugin.manager.migration')
->createStubMigration([]);
$migration
->setTrackLastImported(TRUE);
$this
->assertEquals(TRUE, $migration
->getTrackLastImported());
$this
->assertEquals(TRUE, $migration
->isTrackLastImported());
}