function MigrateSourceTest::testDefaultPropertiesValues

Tests that default values are preserved for several source methods.

File

core/modules/migrate/tests/src/Unit/MigrateSourceTest.php, line 423

Class

MigrateSourceTest
@coversDefaultClass \Drupal\migrate\Plugin\migrate\source\SourcePluginBase[[api-linebreak]] @group migrate

Namespace

Drupal\Tests\migrate\Unit

Code

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.