public function CSVTest::create in Migrate Source CSV 8
Tests the construction of CSV.
@test
@covers ::__construct
File
- tests/
src/ Unit/ Plugin/ migrate/ source/ CSVTest.php, line 58 - Code for CSVTest.php.
Class
- CSVTest
- @coversDefaultClass \Drupal\migrate_source_csv\Plugin\migrate\source\CSV
Namespace
Drupal\Tests\migrate_source_csv\Unit\Plugin\migrate\sourceCode
public function create() {
$configuration = [
'path' => $this->happyPath,
'keys' => [
'id',
],
'header_row_count' => 1,
];
$csv = new CSV($configuration, $this->pluginId, $this->pluginDefinition, $this->plugin);
$this
->assertInstanceOf('\\Drupal\\migrate_source_csv\\Plugin\\migrate\\source\\CSV', $csv);
}