TestClassDataFormConfigurationFactory
extends WP_UnitTestCase
in package
Tags
Table of Contents
- $_formTypes : array<string|int, mixed>
- $_pDataFormConfigurationFactory : DataFormConfigurationFactory
- $_pGeoPositionFieldHandler : GeoPositionFieldHandler
- $_pRecordManagerReadForm : RecordManagerReadForm
- prepare() : mixed
- testConstruct() : mixed
- testCreateEmptyNoDefaults() : mixed
- testCreateEmptyNoType() : mixed
- testCreateEmptyWithDefaults() : mixed
- testGeoPositionSetting() : mixed
- testIsAdminInterface() : mixed
- testLoadByFormId() : mixed
- testLoadByFormName() : mixed
- assertFactoryOutput() : mixed
- getBaseRow() : array<string|int, mixed>
- getBasicFieldsArray() : array<string|int, mixed>
- getBasicFieldsArrayWithGeo() : array<string|int, mixed>
Properties
$_formTypes
private
array<string|int, mixed>
$_formTypes
= [\onOffice\WPlugin\Form::TYPE_CONTACT => \onOffice\WPlugin\DataFormConfiguration\DataFormConfigurationContact::class, \onOffice\WPlugin\Form::TYPE_OWNER => \onOffice\WPlugin\DataFormConfiguration\DataFormConfigurationOwner::class, \onOffice\WPlugin\Form::TYPE_INTEREST => \onOffice\WPlugin\DataFormConfiguration\DataFormConfigurationInterest::class, \onOffice\WPlugin\Form::TYPE_APPLICANT_SEARCH => \onOffice\WPlugin\DataFormConfiguration\DataFormConfigurationApplicantSearch::class]
$_pDataFormConfigurationFactory
private
DataFormConfigurationFactory
$_pDataFormConfigurationFactory
= null
$_pGeoPositionFieldHandler
private
GeoPositionFieldHandler
$_pGeoPositionFieldHandler
= null
$_pRecordManagerReadForm
private
RecordManagerReadForm
$_pRecordManagerReadForm
= null
Methods
prepare()
public
prepare() : mixed
Tags
Return values
mixed —testConstruct()
public
testConstruct() : mixed
Return values
mixed —testCreateEmptyNoDefaults()
public
testCreateEmptyNoDefaults() : mixed
Return values
mixed —testCreateEmptyNoType()
public
testCreateEmptyNoType() : mixed
Return values
mixed —testCreateEmptyWithDefaults()
public
testCreateEmptyWithDefaults() : mixed
Return values
mixed —testGeoPositionSetting()
public
testGeoPositionSetting() : mixed
Return values
mixed —testIsAdminInterface()
public
testIsAdminInterface() : mixed
Return values
mixed —testLoadByFormId()
public
testLoadByFormId() : mixed
Return values
mixed —testLoadByFormName()
public
testLoadByFormName() : mixed
Return values
mixed —assertFactoryOutput()
private
assertFactoryOutput(string $class, string $formType, DataFormConfigurationInterest $pDataFormConfiguration, int $formId, array<string|int, mixed> $fieldsArrayFlat) : mixed
Parameters
- $class : string
- $formType : string
- $pDataFormConfiguration : DataFormConfigurationInterest
- $formId : int
- $fieldsArrayFlat : array<string|int, mixed>
Return values
mixed —getBaseRow()
private
getBaseRow(int $formId, string $formType) : array<string|int, mixed>
Parameters
- $formId : int
- $formType : string
Return values
array<string|int, mixed> —getBasicFieldsArray()
private
getBasicFieldsArray(int $formId, string $formType) : array<string|int, mixed>
Parameters
- $formId : int
- $formType : string
Return values
array<string|int, mixed> —getBasicFieldsArrayWithGeo()
private
getBasicFieldsArrayWithGeo(int $formId, string $formType) : array<string|int, mixed>
Parameters
- $formId : int
- $formType : string