public function UnformattedlFormatterTest::fieldFormatterDataProvider in Range 8
Specific formatter settings data provider.
Return value
array Nested arrays of values to check:
- $settings
- $from
- $to
- $expected_from
- $expected_to
Overrides FormatterTestBase::fieldFormatterDataProvider
File
- tests/
src/ Kernel/ Formatter/ UnformattedlFormatterTest.php, line 28
Class
- UnformattedlFormatterTest
- Tests the unformatted formatter.
Namespace
Drupal\Tests\range\Kernel\FormatterCode
public function fieldFormatterDataProvider() {
return [
// Test separate values.
[
[],
1234.5678,
7856.4321,
'1234.5678',
'7856.4321',
],
[
[],
-10,
400,
'-10',
'400',
],
// Test combined values.
[
[],
1234.5678,
1234.5678,
'1234.5678',
'1234.5678',
],
];
}