onOffice WP Plugin

TestClassDefaultValueRead extends WP_UnitTestCase
in package

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

Properties

Methods

dataProviderBool()

public dataProviderBool() : array<string|int, mixed>
Return values
array<string|int, mixed>

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>

testReadDefaultValuesBool()

public testReadDefaultValuesBool(int $formId, array<string|int, mixed> $row, bool $expectedResult) : mixed
Parameters
$formId : int
$row : array<string|int, mixed>
$expectedResult : bool
Tags
dataProvider

dataProviderBool

Return values
mixed

testReadDefaultValuesSingleselect()

public testReadDefaultValuesSingleselect(int $formId, int $defaultValueId, string $value) : mixed
Parameters
$formId : int
$defaultValueId : int
$value : string
Tags
dataProvider

dataProviderSingleSelect

Return values
mixed

Search results