public function SlickManagerTest::testSlickManagerMethods in Slick Carousel 8.2
Same name and namespace in other branches
- 8 tests/src/Kernel/SlickManagerTest.php \Drupal\Tests\slick\Kernel\SlickManagerTest::testSlickManagerMethods()
Tests cases for various methods.
@covers ::attach
File
- tests/
src/ Kernel/ SlickManagerTest.php, line 87
Class
- SlickManagerTest
- Tests the Slick manager methods.
Namespace
Drupal\Tests\slick\KernelCode
public function testSlickManagerMethods() {
$manager = $this->slickManager;
$settings = [
'media_switch' => 'media',
'lazy' => 'ondemand',
'mousewheel' => TRUE,
'skin' => 'classic',
'down_arrow' => TRUE,
'thumbnail_effect' => 'hover',
'slick_css' => TRUE,
'module_css' => TRUE,
] + $this
->getFormatterSettings() + SlickDefault::extendedSettings();
$attachments = $manager
->attach($settings);
$this
->assertArrayHasKey('slick', $attachments['drupalSettings']);
}