function ExplodeTest::providerExplodeWithNonStrictAndEmptySource
Same name in other branches
- 9 core/modules/migrate/tests/src/Unit/process/ExplodeTest.php \Drupal\Tests\migrate\Unit\process\ExplodeTest::providerExplodeWithNonStrictAndEmptySource()
- 8.9.x core/modules/migrate/tests/src/Unit/process/ExplodeTest.php \Drupal\Tests\migrate\Unit\process\ExplodeTest::providerExplodeWithNonStrictAndEmptySource()
- 11.x core/modules/migrate/tests/src/Unit/process/ExplodeTest.php \Drupal\Tests\migrate\Unit\process\ExplodeTest::providerExplodeWithNonStrictAndEmptySource()
Data provider for ::testExplodeWithNonStrictAndEmptySource().
File
-
core/
modules/ migrate/ tests/ src/ Unit/ process/ ExplodeTest.php, line 81
Class
- ExplodeTest
- Tests the Explode process plugin.
Namespace
Drupal\Tests\migrate\Unit\processCode
public static function providerExplodeWithNonStrictAndEmptySource() {
return [
'normal_string' => [
'a|b|c',
[
'a',
'b',
'c',
],
],
'integer_cast_to_string' => [
123,
[
'123',
],
],
'zero_integer_cast_to_string' => [
0,
[
'0',
],
],
'true_cast_to_string' => [
TRUE,
[
'1',
],
],
'null_empty_array' => [
NULL,
[],
],
'false_empty_array' => [
FALSE,
[],
],
'empty_string_empty_array' => [
'',
[],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.