public function SlickTestCase::getOptions in Slick Carousel 7.2
Test configuration options.
Return value
array Returns an array of options to test saving.
2 calls to SlickTestCase::getOptions()
- SlickTestCase::testOptionSetCrud in tests/
slick.test - Tests Slick optionset CRUD.
- SlickTestCase::testOptionSetForm in tests/
slick.test - Tests Slick optionset form.
File
- tests/
slick.test, line 274 - Provides test cases for Slick carousel based on flexslider.test.
Class
- SlickTestCase
- Tests the Slick optionsets, configuration options and permission controls.
Code
public function getOptions() {
// Valid optionset data.
$defaults = slick_get_options();
// Exclude non UI options, but included as defaults for formatters, or
// outside the designated main form elements.
unset($defaults['mousewheel']);
unset($defaults['randomize']);
$valid = array(
'set1' => $defaults,
'set2' => array(
'autoplay' => TRUE,
'initialSlide' => 1,
),
);
// Invalid edge cases.
$error = array();
return array(
'valid' => $valid,
'error' => $error,
);
}