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