You are here

public function SlickCrudTest::getPrintedValue in Slick Carousel 7.3

Test configuration options.

Parameters

mixed $value: The given value.

Return value

mixed Returns printed value.

2 calls to SlickCrudTest::getPrintedValue()
SlickCrudTest::testOptionSetCrud in tests/SlickCrudTest.test
Tests Slick optionset CRUD.
SlickCrudTest::testOptionSetForm in tests/SlickCrudTest.test
Tests Slick optionset form.

File

tests/SlickCrudTest.test, line 303

Class

SlickCrudTest
Tests the Slick optionsets, configuration options and permission controls.

Code

public function getPrintedValue($value) {
  $read_value = $value === FALSE ? 'FALSE' : ($value === TRUE ? 'TRUE' : $value);
  $read_value = empty($read_value) ? 'NULL' : $read_value;
  return $read_value;
}