public function TelephoneTest::dataProviderPrepareValue in Feeds 8.3
Data provider for testPrepareValue().
File
- tests/
src/ Unit/ Feeds/ Target/ TelephoneTest.php, line 46
Class
- TelephoneTest
- @coversDefaultClass \Drupal\feeds\Feeds\Target\Telephone @group feeds
Namespace
Drupal\Tests\feeds\Unit\Feeds\TargetCode
public function dataProviderPrepareValue() {
return [
// Custom string.
[
'string',
'string',
],
// Empty string.
[
'',
'',
],
// Test telephone number in default format.
[
'+49123456789',
'+49123456789',
],
// Test telephone number with special characters.
[
'+49 123 456789',
'+49 123 456789',
],
[
'+49 123 456789-0',
'+49 123 456789-0',
],
[
'+49 (0)123 456789-0',
'+49 (0)123 456789-0',
],
// Test long number.
[
'+123456789123456789',
'+123456789123456789',
],
// Test number with 7 digits.
[
'+41 1234567',
'+41 1234567',
],
[
'+41 10000000000000000000',
'+41 10000000000000000000',
],
];
}