You are here

public function CSVFileObjectTest::testCountLines in Migrate Source CSV 8.2

Tests that line count is correct.

@covers ::count

File

tests/src/Unit/CSVFileObjectTest.php, line 57

Class

CSVFileObjectTest
@coversDefaultClass \Drupal\migrate_source_csv\CSVFileObject

Namespace

Drupal\Tests\migrate_source_csv\Unit

Code

public function testCountLines() {
  $expected = 15;
  $this->csvFileObject
    ->setHeaderRowCount(1);
  $actual = $this->csvFileObject
    ->count();
  $this
    ->assertEquals($expected, $actual);
}