<?php

namespace Drupal\Tests\slick\Unit;

use Drupal\slick\Entity\Slick;
use Drupal\slick\SlickDefault;
use Drupal\Tests\UnitTestCase;

/**
 * @coversDefaultClass \Drupal\slick\Entity\Slick
 *
 * @group slick
 */
class SlickUnitTest extends UnitTestCase {

  /**
   * Tests for slick entity methods.
   *
   * @covers \Drupal\slick\SlickDefault::jsSettings
   * @covers ::getDependentOptions
   */
  public function testSlickEntity() {
    $js_settings = SlickDefault::jsSettings();
    $this->assertArrayHasKey('lazyLoad', $js_settings);

    $dependent_options = Slick::getDependentOptions();
    $this->assertArrayHasKey('useCSS', $dependent_options);
  }

}
