TestClassDefaultValueRowSaver
extends WP_UnitTestCase
in package
Table of Contents
- EXAMPLE_RECORDS = ['testSingleselect' => 'singlevalue', 'testMultiSelect' => ['value1', 'value3'], 'testText' => ['native' => 'testEN', 'de_DE' => 'testDE'], 'testNumericRange1' => ['min' => 3, 'max' => 1337], 'testNumericRange2' => ['min' => 3], 'testNumericRange3' => ['max' => 4], 'testNumericRange4' => [], 'testBoolFalse' => '0']
- $_pDefaultValueCreate : DefaultValueCreate
- $_pLanguage : Language
- $_pSubject : DefaultValueRowSaver
- prepare() : mixed
- testSaveDefaultValuesBoolFalse() : mixed
- testSaveDefaultValuesFloatRange() : mixed
- testSaveDefaultValuesIntegerRange() : mixed
- testSaveDefaultValuesIntegerRangeEmpty() : mixed
- testSaveDefaultValuesIntegerRangeMaxOnly() : mixed
- testSaveDefaultValuesIntegerRangeMinOnly() : mixed
- testSaveDefaultValuesMultiSelect() : mixed
- testSaveDefaultValuesSingleSelect() : mixed
- testSaveDefaultValuesText() : mixed
- testSaveDefaultValuesVarchar() : mixed
- buildFieldsCollection() : FieldsCollection
Constants
EXAMPLE_RECORDS
public
array<string|int, mixed>
EXAMPLE_RECORDS
= ['testSingleselect' => 'singlevalue', 'testMultiSelect' => ['value1', 'value3'], 'testText' => ['native' => 'testEN', 'de_DE' => 'testDE'], 'testNumericRange1' => ['min' => 3, 'max' => 1337], 'testNumericRange2' => ['min' => 3], 'testNumericRange3' => ['max' => 4], 'testNumericRange4' => [], 'testBoolFalse' => '0']
Properties
$_pDefaultValueCreate
private
DefaultValueCreate
$_pDefaultValueCreate
= null
$_pLanguage
private
Language
$_pLanguage
= null
$_pSubject
private
DefaultValueRowSaver
$_pSubject
= null
Methods
prepare()
public
prepare() : mixed
Tags
Return values
mixed —testSaveDefaultValuesBoolFalse()
public
testSaveDefaultValuesBoolFalse() : mixed
Tags
Return values
mixed —testSaveDefaultValuesFloatRange()
public
testSaveDefaultValuesFloatRange() : mixed
Tags
Return values
mixed —testSaveDefaultValuesIntegerRange()
public
testSaveDefaultValuesIntegerRange() : mixed
Tags
Return values
mixed —testSaveDefaultValuesIntegerRangeEmpty()
public
testSaveDefaultValuesIntegerRangeEmpty() : mixed
Tags
Return values
mixed —testSaveDefaultValuesIntegerRangeMaxOnly()
public
testSaveDefaultValuesIntegerRangeMaxOnly() : mixed
Tags
Return values
mixed —testSaveDefaultValuesIntegerRangeMinOnly()
public
testSaveDefaultValuesIntegerRangeMinOnly() : mixed
Tags
Return values
mixed —testSaveDefaultValuesMultiSelect()
public
testSaveDefaultValuesMultiSelect() : mixed
Tags
Return values
mixed —testSaveDefaultValuesSingleSelect()
public
testSaveDefaultValuesSingleSelect() : mixed
Return values
mixed —testSaveDefaultValuesText()
public
testSaveDefaultValuesText() : mixed
Return values
mixed —testSaveDefaultValuesVarchar()
public
testSaveDefaultValuesVarchar() : mixed
Tags
Return values
mixed —buildFieldsCollection()
private
buildFieldsCollection() : FieldsCollection