You are here

public function SpreadsheetIteratorTest::testRowsAndColumnsCount in Migrate Spreadsheet 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Unit/SpreadsheetIteratorTest.php \Drupal\Tests\migrate_spreadsheet\Unit\SpreadsheetIteratorTest::testRowsAndColumnsCount()

@covers ::getRowsCount @covers ::getColumnsCount

File

tests/src/Unit/SpreadsheetIteratorTest.php, line 51

Class

SpreadsheetIteratorTest
Tests the spreadsheet iterator.

Namespace

Drupal\Tests\migrate_spreadsheet\Unit

Code

public function testRowsAndColumnsCount() {
  $this
    ->assertEquals(5, $this->iterator
    ->getRowsCount());
  $this
    ->assertEquals(7, $this->iterator
    ->getColumnsCount());
}