UnformattedlFormatterTest.php in Range 8
File
tests/src/Kernel/Formatter/UnformattedlFormatterTest.php
View source
<?php
namespace Drupal\Tests\range\Kernel\Formatter;
use Drupal\range\Plugin\Field\FieldFormatter\RangeUnformattedFormatter;
class UnformattedlFormatterTest extends FormatterTestBase {
protected function setUp() : void {
$this->fieldType = 'range_float';
$this->displayType = 'range_unformatted';
$this->defaultSettings = RangeUnformattedFormatter::defaultSettings();
parent::setUp();
}
public function fieldFormatterDataProvider() {
return [
[
[],
1234.5678,
7856.4321,
'1234.5678',
'7856.4321',
],
[
[],
-10,
400,
'-10',
'400',
],
[
[],
1234.5678,
1234.5678,
'1234.5678',
'1234.5678',
],
];
}
}