TestClassDefaultValueRead
extends WP_UnitTestCase
Table of Contents
-
$_pSubject
: DefaultValueRead
-
$_pWPDBMock
: wpdb
-
dataProviderBool()
: array<string|int, mixed>
-
dataProviderMultiSelect()
: Generator
-
dataProviderNumericRange()
: array<string|int, mixed>
-
dataProviderSingleSelect()
: array<string|int, mixed>
-
dataProviderText()
: Generator
-
prepare()
: mixed
-
testReadDefaultValuesBool()
: mixed
-
testReadDefaultValuesMultiSelect()
: mixed
-
testReadDefaultValuesNumericRange()
: mixed
-
testReadDefaultValuesSingleselect()
: mixed
-
testReadDefaultValuesText()
: mixed
$_pSubject
private
DefaultValueRead
$_pSubject
= null
$_pWPDBMock
private
wpdb
$_pWPDBMock
= null
dataProviderBool()
public
dataProviderBool() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
dataProviderMultiSelect()
public
dataProviderMultiSelect() : Generator
Return values
Generator
—
dataProviderNumericRange()
public
dataProviderNumericRange() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
dataProviderSingleSelect()
public
dataProviderSingleSelect() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
dataProviderText()
public
dataProviderText() : Generator
Return values
Generator
—
prepare()
public
prepare() : mixed
-
before
-
Return values
mixed
—
testReadDefaultValuesBool()
public
testReadDefaultValuesBool(int $formId, array<string|int, mixed> $row, bool $expectedResult) : mixed
Parameters
-
$formId
: int
-
-
$row
: array<string|int, mixed>
-
-
$expectedResult
: bool
-
-
dataProvider
-
Return values
mixed
—
testReadDefaultValuesMultiSelect()
public
testReadDefaultValuesMultiSelect(int $formId, array<string|int, mixed> $rows, DefaultValueModelMultiselect $pReference) : mixed
Parameters
-
$formId
: int
-
-
$rows
: array<string|int, mixed>
-
-
$pReference
: DefaultValueModelMultiselect
-
-
dataProvider
-
Return values
mixed
—
testReadDefaultValuesNumericRange()
public
testReadDefaultValuesNumericRange(int $formId, array<string|int, mixed> $rows, DefaultValueModelNumericRange $pReference) : mixed
Parameters
-
$formId
: int
-
-
$rows
: array<string|int, mixed>
-
-
$pReference
: DefaultValueModelNumericRange
-
-
dataProvider
-
Return values
mixed
—
testReadDefaultValuesSingleselect()
public
testReadDefaultValuesSingleselect(int $formId, int $defaultValueId, string $value) : mixed
Parameters
-
$formId
: int
-
-
$defaultValueId
: int
-
-
$value
: string
-
-
dataProvider
-
Return values
mixed
—
testReadDefaultValuesText()
public
testReadDefaultValuesText(int $formId, array<string|int, mixed> $rows, DefaultValueModelText $pReference) : mixed
Parameters
-
$formId
: int
-
-
$rows
: array<string|int, mixed>
-
-
$pReference
: DefaultValueModelText
-
-
dataProvider
-
Return values
mixed
—