TestClassDefaultValueModelToOutputConverterText
extends WP_UnitTestCase
Table of Contents
-
EXPECTEDRESULTS
= ['de_DE' => ['native' => 'testDE', 'es_SP' => 'testSP', 'en_US' => 'testUS'], 'en_US' => ['de_DE' => 'testDE', 'es_SP' => 'testSP', 'native' => 'testUS']]
-
$_pLanguage
: Language
-
generateTestData()
: Generator
-
prepare()
: mixed
-
testConvert()
: mixed
EXPECTEDRESULTS
public
mixed
EXPECTEDRESULTS
= ['de_DE' => ['native' => 'testDE', 'es_SP' => 'testSP', 'en_US' => 'testUS'], 'en_US' => ['de_DE' => 'testDE', 'es_SP' => 'testSP', 'native' => 'testUS']]
$_pLanguage
private
Language
$_pLanguage
= null
generateTestData()
public
generateTestData() : Generator
Return values
Generator
—
prepare()
public
prepare() : mixed
-
before
-
Return values
mixed
—
testConvert()
public
testConvert(string $currentLocale, DefaultValueModelText $pModel, array<string|int, mixed> $expectation) : mixed
Parameters
-
$currentLocale
: string
-
-
$pModel
: DefaultValueModelText
-
-
$expectation
: array<string|int, mixed>
-
-
dataProvider
-
Return values
mixed
—