You are here

public function CSVFileObjectTest::getHeaderRowCount in Migrate Source CSV 8

Tests that the header row count is correctly returned.

@test

@depends setHeaderRowCount

@covers ::getHeaderRowCount

File

tests/src/Unit/CSVFileObjectTest.php, line 69
Code for CSVFileObjectTest.php.

Class

CSVFileObjectTest
@coversDefaultClass \Drupal\migrate_source_csv\CSVFileObject

Namespace

Drupal\Tests\migrate_source_csv\Unit

Code

public function getHeaderRowCount($actual) {
  $expected = 2;
  $this
    ->assertEquals($expected, $actual);
}