function MigrateSourceTest::testDefaultPropertiesValues
Tests that default values are preserved for several source methods.
File
-
core/
modules/ migrate/ tests/ src/ Unit/ MigrateSourceTest.php, line 429
Class
Namespace
Drupal\Tests\migrate\UnitCode
public function testDefaultPropertiesValues() : void {
$this->migrationConfiguration['id'] = 'test_migration';
$migration = $this->getMigration();
$source = new StubSourceGeneratorPlugin([], '', [], $migration);
// Test the default value of the skipCount Value.
$this->assertTrue($source->getSkipCount());
$this->assertTrue($source->getCacheCounts());
$this->assertTrue($source->getTrackChanges());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.