You are here

public function SlickUnitTest::testSlickEntity in Slick Carousel 8.2

Same name and namespace in other branches
  1. 8 tests/src/Unit/SlickUnitTest.php \Drupal\Tests\slick\Unit\SlickUnitTest::testSlickEntity()

Tests for slick entity methods.

@covers \Drupal\slick\SlickDefault::jsSettings @covers ::getDependentOptions

File

tests/src/Unit/SlickUnitTest.php, line 22

Class

SlickUnitTest
@coversDefaultClass \Drupal\slick\Entity\Slick

Namespace

Drupal\Tests\slick\Unit

Code

public function testSlickEntity() {
  $js_settings = SlickDefault::jsSettings();
  $this
    ->assertArrayHasKey('lazyLoad', $js_settings);
  $dependent_options = Slick::getDependentOptions();
  $this
    ->assertArrayHasKey('useCSS', $dependent_options);
}