You are here

public function CSVUnitTest::setUp in Migrate Source CSV 8.2

Same name and namespace in other branches
  1. 8.3 tests/src/Unit/Plugin/migrate/source/CSVUnitTest.php \Drupal\Tests\migrate_source_csv\Unit\Plugin\migrate\source\CSVUnitTest::setUp()

Overrides CSVUnitBase::setUp

File

tests/src/Unit/Plugin/migrate/source/CSVUnitTest.php, line 43

Class

CSVUnitTest
@coversDefaultClass \Drupal\migrate_source_csv\Plugin\migrate\source\CSV

Namespace

Drupal\Tests\migrate_source_csv\Unit\Plugin\migrate\source

Code

public function setUp() {
  parent::setUp();
  $this->pluginId = 'test csv migration';
  $this->pluginDefinition = [];
  $migration = $this
    ->prophesize(MigrationInterface::class);
  $migration
    ->getIdMap()
    ->willReturn(NULL);
  $this->migration = $migration
    ->reveal();
}