You are here

SlickUnitTest.php in Slick Carousel 8.2

Same filename and directory in other branches
  1. 8 tests/src/Unit/SlickUnitTest.php

File

tests/src/Unit/SlickUnitTest.php
View source
<?php

namespace Drupal\Tests\slick\Unit;

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

/**
 * @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);
  }

}

Classes

Namesort descending Description
SlickUnitTest @coversDefaultClass \Drupal\slick\Entity\Slick