SlickUnitTest.php in Slick Carousel 8.2
Same filename and directory in other branches
Namespace
Drupal\Tests\slick\UnitFile
tests/src/Unit/SlickUnitTest.phpView 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
Name | Description |
---|---|
SlickUnitTest | @coversDefaultClass \Drupal\slick\Entity\Slick |