function DedupeEntityTest::providerTestDedupe
Data provider for testDedupe().
File
-
core/
modules/ migrate/ tests/ src/ Unit/ process/ DedupeEntityTest.php, line 117
Class
- DedupeEntityTest
- @coversDefaultClass \Drupal\migrate\Plugin\migrate\process\DedupeEntity @group migrate @group legacy
Namespace
Drupal\Tests\migrate\Unit\processCode
public function providerTestDedupe() {
return [
// Tests no duplication.
[
0,
],
// Tests no duplication and start position.
[
0,
NULL,
10,
],
// Tests no duplication, start position, and length.
[
0,
NULL,
5,
10,
],
// Tests no duplication and length.
[
0,
NULL,
NULL,
10,
],
// Tests duplication.
[
3,
],
// Tests duplication and start position.
[
3,
NULL,
10,
],
// Tests duplication, start position, and length.
[
3,
NULL,
5,
10,
],
// Tests duplication and length.
[
3,
NULL,
NULL,
10,
],
// Tests no duplication and postfix.
[
0,
'_',
],
// Tests no duplication, postfix, and start position.
[
0,
'_',
5,
],
// Tests no duplication, postfix, start position, and length.
[
0,
'_',
5,
10,
],
// Tests no duplication, postfix, and length.
[
0,
'_',
NULL,
10,
],
// Tests duplication and postfix.
[
2,
'_',
],
// Tests duplication, postfix, and start position.
[
2,
'_',
5,
],
// Tests duplication, postfix, start position, and length.
[
2,
'_',
5,
10,
],
// Tests duplication, postfix, and length.
[
2,
'_',
NULL,
10,
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.