onOffice WP Plugin

TestClassFieldRowConverterSearchCriteria extends WP_UnitTestCase
in package

Table of Contents

$_testData  : array<string|int, mixed>
rowProvider()  : array<string|int, mixed>
testConvertRow()  : mixed

Properties

$_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']]]]

Methods

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>
Tags
dataProvider

rowProvider

throws
DependencyException
throws
NotFoundException
Return values
mixed

Search results