public function MigrateSourceTest::testDefaultPropertiesValues in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate/tests/src/Unit/MigrateSourceTest.php \Drupal\Tests\migrate\Unit\MigrateSourceTest::testDefaultPropertiesValues()
Test that cacheCounts, skipCount, trackChanges preserve their default values.
File
- core/
modules/ migrate/ tests/ src/ Unit/ MigrateSourceTest.php, line 424 - Contains \Drupal\Tests\migrate\Unit\MigrateSourceTest.
Class
- MigrateSourceTest
- @coversDefaultClass \Drupal\migrate\Plugin\migrate\source\SourcePluginBase @group migrate
Namespace
Drupal\Tests\migrate\UnitCode
public function testDefaultPropertiesValues() {
$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());
}