ePages 7.48.0 - DE_EPAGES/USPS/t/PermanenceTestingBuilder.pm

Package DE_EPAGES::USPS::t::PermanenceTestingBuilder

It provides fake remote clients.

Functions

_importTestShop
cleanupTestEnvironment
getShippingFulfillmentMethod
getShop
getShopDependentObject
new

_importTestShop

It imports shop data from provided XML file into DataBase and returns imported root object

Syntax
$RootTestObject = $self->_importTestShop($ImportFile);
Input
$ImportFile (string)
file name to be imported
Return
(object)
$RootTestObject

cleanupTestEnvironment

It cleans up test data from DataBase.

Syntax
$IsCleanedUp = $self->cleanupTestEnvironment();
Return
(boolean)
$IsCleanedUp

getShippingFulfillmentMethod

It returns previously imported USPS ShippingFulfillment object.

Syntax
$ShippingFulfillmentMethod = $self->getShippingFulfillmentMethod();
Return
(object)
$ShippingFulfillmentMethod

getShop

It returns previously imported shop object.

Syntax
$Shop = $self->getShop();
Return
(object)
$Shop

getShopDependentObject

It returns previously imported object. The one specified by input parameter path (shop relative path)

Syntax
$Object = $self->getShopDependentObject($ObjectPath);
Input
$ObjectPath
string
Return
(object)
$Object

new

Creates a new test builder object for USPS .

Syntax
$TestBuilderUSPS = DE_EPAGES::USPS::t::PermanenceTestingBuilder->new();
Input
$ImportFile (string)
file name to be imported
Return
$TestBuilderUSPS (object)
USPS test builder object