onOffice WP Plugin

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

$_postValues

private array<string|int, mixed> $_postValues = ['testaddressfield1varchar' => 'testValue', 'testaddressfield1multiselect' => ['hut', 'tut'], 'testestatefield1multiselect' => 'test']

Methods

testCreateOrCompleteAddressWithContactType()

public testCreateOrCompleteAddressWithContactType() : mixed
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

Search results