public function SpreadsheetIteratorTest::providerTestGetException 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::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 80
Class
- SpreadsheetIteratorTest
- Tests the spreadsheet iterator.
Namespace
Drupal\Tests\migrate_spreadsheet\UnitCode
public function providerTestGetException() {
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,
],
];
}