protected function SpreadsheetIteratorTest::setUp in Migrate Spreadsheet 8
Same name and namespace in other branches
- 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\UnitCode
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',
],
]);
}