You are here

protected function SpreadsheetIteratorTest::setUp 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::setUp()

Overrides UnitTestCase::setUp

File

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

Class

SpreadsheetIteratorTest
Tests the spreadsheet iterator.

Namespace

Drupal\Tests\migrate_spreadsheet\Unit

Code

protected function setUp() {
  parent::setUp();
  $this->iterator = (new SpreadsheetIterator())
    ->setConfiguration([
    'worksheet' => $this
      ->getWorksheet(),
    'origin' => 'B3',
    'header_row' => 2,
    'columns' => [
      'column b',
      'column d',
      'column e',
    ],
  ]);
}