public function GridStackFormatterTest::testBuildSettings in GridStack 8.2
Same name and namespace in other branches
- 8 tests/src/Kernel/GridStackFormatterTest.php \Drupal\Tests\gridstack\Kernel\GridStackFormatterTest::testBuildSettings()
Tests for \Drupal\gridstack\GridStackFormatter.
@covers \Drupal\gridstack\GridStackFormatter::buildSettings @dataProvider providerTestBuildSettings
Parameters
array $settings: The settings being tested.
mixed|bool|string $expected: The expected output.
File
- tests/
src/ Kernel/ GridStackFormatterTest.php, line 127
Class
- GridStackFormatterTest
- Tests the GridStack field rendering using the image field type.
Namespace
Drupal\Tests\gridstack\KernelCode
public function testBuildSettings(array $settings, $expected) {
$format['settings'] = array_merge($this
->getFormatterSettings(), $settings);
$this->gridstackFormatter
->buildSettings($format, $this->testItems);
$this
->assertArrayHasKey('bundle', $format['settings']);
}