You are here

public function SlickUnitTest::testSlickEntity in Slick Carousel 8

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

Tests for slick entity methods.

@covers ::htmlSettings @covers ::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() {
  $html_settings = Slick::htmlSettings();
  $this
    ->assertArrayHasKey('display', $html_settings);
  $js_settings = Slick::jsSettings();
  $this
    ->assertArrayHasKey('lazyLoad', $js_settings);
  $dependent_options = Slick::getDependentOptions();
  $this
    ->assertArrayHasKey('useCSS', $dependent_options);
}