public function CSVUnitTest::testCreate in Migrate Source CSV 8.3
Same name and namespace in other branches
- 8.2 tests/src/Unit/Plugin/migrate/source/CSVUnitTest.php \Drupal\Tests\migrate_source_csv\Unit\Plugin\migrate\source\CSVUnitTest::testCreate()
Tests the construction of CSV.
@covers ::__construct
File
- tests/
src/ Unit/ Plugin/ migrate/ source/ CSVUnitTest.php, line 91
Class
- CSVUnitTest
- @coversDefaultClass \Drupal\migrate_source_csv\Plugin\migrate\source\CSV
Namespace
Drupal\Tests\migrate_source_csv\Unit\Plugin\migrate\sourceCode
public function testCreate() : void {
$configuration = [
'path' => $this->standardCharsPath,
'ids' => [
'id',
],
];
$csv = new CSV($configuration, $this->pluginId, $this->pluginDefinition, $this->migration);
$this
->assertInstanceOf(CSV::class, $csv);
}