You are here

public function MixItUpDefaultOptionsServiceTest::testDefaultOptionsTrue in MixItUp Views 8

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/MixItUpDefaultOptionsServiceTest.php \Drupal\Tests\mixitup_views\Unit\MixItUpDefaultOptionsServiceTest::testDefaultOptionsTrue()

Covers defaultOptions method if $convert param coming with a TRUE value.

@covers \Drupal\mixitup_views\MixitupViewsDefaultOptionsService::defaultOptions

File

tests/src/Unit/MixItUpDefaultOptionsServiceTest.php, line 72

Class

MixItUpDefaultOptionsServiceTest
Class MixItUpDefaultOptionsServiceTest.

Namespace

Drupal\Tests\mixitup_views\Unit

Code

public function testDefaultOptionsTrue() : void {
  $options = [
    'selectors_target' => '.mix',
    'selectors_filter' => '.filter',
    'selectors_sort' => '.sort',
    'load_filter' => 'all',
    'load_sort' => 'default:asc',
    'animation_enable' => TRUE,
    'animation_effects' => 'fade scale',
    'animation_duration' => 600,
    'animation_easing' => 'ease',
    'animation_perspectiveDistance' => '3000px',
    'animation_perspectiveOrigin' => '50% 50%',
    'animation_queue' => TRUE,
    'animation_queueLimit' => 1,
    'restrict_vocab' => FALSE,
    'restrict_vocab_ids' => [],
  ];
  $this
    ->assertEquals($options, $this->unit
    ->defaultOptions(TRUE));
}