You are here

public function CSVFileObjectTest::setHeaderRowCount in Migrate Source CSV 8

Tests that the header row count is correctly set.

@test

@covers ::setHeaderRowCount

File

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

Class

CSVFileObjectTest
@coversDefaultClass \Drupal\migrate_source_csv\CSVFileObject

Namespace

Drupal\Tests\migrate_source_csv\Unit

Code

public function setHeaderRowCount() {
  $expected = 2;
  $this->csvFileObject
    ->setHeaderRowCount($expected);
  return $this->csvFileObject
    ->getHeaderRowCount();
}