TestClassFieldRowConverterSearchCriteria
extends WP_UnitTestCase
Table of Contents
-
$_testData
: array<string|int, mixed>
-
rowProvider()
: array<string|int, mixed>
-
testConvertRow()
: mixed
$_testData
private
array<string|int, mixed>
$_testData
= ['basic values' => [['name' => 'testField', 'type' => 'multiselect'], ['label' => 'testField', 'tablename' => 'ObjSuchkriterien', 'module' => 'searchcriteria', 'content' => 'Search Criteria', 'permittedvalues' => [], 'rangefield' => false, 'type' => 'multiselect']], 'variable values' => [['name' => 'testField1', 'values' => ['abc', 'def'], 'rangefield' => true, 'type' => 'multiselect', 'additionalTranslations' => ['testField1__von' => 'testField1 von', 'testField1__bis' => 'testField1 bis']], ['label' => 'testField1', 'tablename' => 'ObjSuchkriterien', 'module' => 'searchcriteria', 'content' => 'Search Criteria', 'permittedvalues' => ['abc', 'def'], 'type' => 'multiselect', 'rangefield' => true, 'additionalTranslations' => ['testField1__von' => 'testField1 von', 'testField1__bis' => 'testField1 bis']]]]
rowProvider()
public
rowProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
testConvertRow()
public
testConvertRow(array<string|int, mixed> $input, array<string|int, mixed> $expected) : mixed
Parameters
-
$input
: array<string|int, mixed>
-
-
$expected
: array<string|int, mixed>
-
-
dataProvider
-
-
throws
-
DependencyException
-
throws
-
NotFoundException
Return values
mixed
—