You are here

public function SpreadsheetIteratorTest::providerTestGetException in Migrate Spreadsheet 2.0.x

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

Provides test cases for ::testGetOrigin()

Return value

array[] A list of test parameters to be passed to ::testGetOrigin().

File

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

Class

SpreadsheetIteratorTest
Tests the spreadsheet iterator.

Namespace

Drupal\Tests\migrate_spreadsheet\Unit

Code

public function providerTestGetException() : array {
  return [
    'The minimum valid origin' => [
      'A1',
      FALSE,
    ],
    'A valid origin' => [
      'B3',
      FALSE,
    ],
    'Column out of bounds' => [
      'H3',
      TRUE,
    ],
    'Row out of bounds' => [
      'E6',
      TRUE,
    ],
    'Both, row and column, out of bounds' => [
      'H6',
      TRUE,
    ],
    'The maximum valid value' => [
      'G5',
      FALSE,
    ],
  ];
}