TestClassFormAddressCreator
extends WP_UnitTestCase
in package
Table of Contents
- $_pFieldsCollectionBuilderShort : FieldsCollectionBuilderShort
- $_postValues : array<string|int, mixed>
- $_pSDKWrapper : SDKWrapperMocker
- $_pSubject : FormAddressCreator
- prepare() : mixed
- testCreateOrCompleteAddressFailure() : mixed
- testCreateOrCompleteAddressSuccess() : mixed
- testCreateOrCompleteAddressWithContactType() : mixed
- testGetAddressDataForEmail() : mixed
- addCreateAddressResponseToSKDWrapper() : mixed
- addCreateAddressResponseToSKDWrapperWithContactType() : mixed
- configureSDKWrapperMockerForAddressCreation() : mixed
- configureSDKWrapperMockerForAddressCreationWithContactType() : mixed
- createFormData() : FormData
Properties
$_pFieldsCollectionBuilderShort
private
FieldsCollectionBuilderShort
$_pFieldsCollectionBuilderShort
= null
$_postValues
private
array<string|int, mixed>
$_postValues
= ['testaddressfield1varchar' => 'testValue', 'testaddressfield1multiselect' => ['hut', 'tut'], 'testestatefield1multiselect' => 'test']
$_pSDKWrapper
private
SDKWrapperMocker
$_pSDKWrapper
= null
$_pSubject
private
FormAddressCreator
$_pSubject
= null
Methods
prepare()
public
prepare() : mixed
Tags
Return values
mixed —testCreateOrCompleteAddressFailure()
public
testCreateOrCompleteAddressFailure() : mixed
Return values
mixed —testCreateOrCompleteAddressSuccess()
public
testCreateOrCompleteAddressSuccess() : mixed
Return values
mixed —testCreateOrCompleteAddressWithContactType()
public
testCreateOrCompleteAddressWithContactType() : mixed
Return values
mixed —testGetAddressDataForEmail()
public
testGetAddressDataForEmail() : mixed
Tags
Return values
mixed —addCreateAddressResponseToSKDWrapper()
private
addCreateAddressResponseToSKDWrapper(array<string|int, mixed> $response) : mixed
Parameters
- $response : array<string|int, mixed>
Return values
mixed —addCreateAddressResponseToSKDWrapperWithContactType()
private
addCreateAddressResponseToSKDWrapperWithContactType(array<string|int, mixed> $response) : mixed
Parameters
- $response : array<string|int, mixed>
Return values
mixed —configureSDKWrapperMockerForAddressCreation()
private
configureSDKWrapperMockerForAddressCreation(int $id) : mixed
Parameters
- $id : int
Return values
mixed —configureSDKWrapperMockerForAddressCreationWithContactType()
private
configureSDKWrapperMockerForAddressCreationWithContactType(int $id) : mixed
Parameters
- $id : int
Return values
mixed —createFormData()
private
createFormData() : FormData