You are here

protected function FlexsliderTest::getTestOptions in Flex Slider 8.2

Get the test configuration options.

Return value

array Returns an array of options to test saving.

2 calls to FlexsliderTest::getTestOptions()
FlexsliderTest::testOptionSetCrud in tests/src/Functional/FlexsliderTest.php
Test managing the optionset.
FlexsliderTest::testOptionSetForm in tests/src/Functional/FlexsliderTest.php
Test the option set form.

File

tests/src/Functional/FlexsliderTest.php, line 272

Class

FlexsliderTest
Test the FlexSlider presets, configuration options and permission controls.

Namespace

Drupal\Tests\flexslider\Functional

Code

protected function getTestOptions() {

  // Valid option set data.
  $valid = [
    'set1' => FlexsliderDefaults::defaultOptions(),
    'set2' => [
      'animation' => 'slide',
      'startAt' => 4,
    ],
  ];

  // Invalid edge cases.
  $error = [];
  return [
    'valid' => $valid,
    'error' => $error,
  ];
}