ePages 7.17.0 - DE_EPAGES/POSTPAY/t/API/TestHelper.pm

Package DE_EPAGES::POSTPAY::t::API::TestHelper

Test helper

Base
Exporter
@EXPORT_OK
Init
Cleanup
LoadTestShop
LoadPOSTPAYPayment
LoadPOSTPAYAnonymusUserBasket
LoadPOSTPAYLineItemPaymentAnonymusUser
LoadPOSTPAYLineItemPaymentAnonymusUserExtended
LoadPOSTPAYLineItemPaymentRegisteredUser
GetPOSTPAYTestXMLDirectory
ExistsPOSTPAYCustomer
LoadPOSTPAYCustomer

Functions

Cleanup
ExistsPOSTPAYCustomer
GetPOSTPAYTestXMLDirectory
Init
LoadPOSTPAYAnonymusUserBasket
LoadPOSTPAYCustomer
LoadPOSTPAYLineItemPaymentAnonymusUser
LoadPOSTPAYLineItemPaymentAnonymusUserExtended
LoadPOSTPAYLineItemPaymentRegisteredUser
LoadPOSTPAYPayment
LoadTestShop

Cleanup

Deletes Shop

Syntax
Cleanup;
Return
1 (String)
return value

ExistsPOSTPAYCustomer

Returns true if Customer POSTPAY_MP100400683

Syntax
ExistsPOSTPAYCustomer();
Return
$boolean (boolean)
0 or 1

GetPOSTPAYTestXMLDirectory

Returns the Directory of xml files for the testcases

Syntax
GetPOSTPAYTestXMLDirectory();
Return
$path (string)
path to xml directory of testcase

Init

Creates Testshop and cleans everything up before start

Syntax
Init();
Return
1 (String)
return value

LoadPOSTPAYAnonymusUserBasket

Loads the POSTPAY Basket from the TestShop

Syntax
LoadPOSTPAYAnonymusUserBasket;
Return
$Basket (object)
Basket

LoadPOSTPAYCustomer

Loads the postpay customer

Syntax
LoadPOSTPAYCustomer();
Return
$customer (object)
customer

LoadPOSTPAYLineItemPaymentAnonymusUser

Loads the POSTPAY Line Item Payment for the anonymus user from the TestShop

Syntax
LoadPOSTPAYLineItemPaymentAnonymusUser();
Return
$LineItemPayment (object)
LineItemPayment

LoadPOSTPAYLineItemPaymentAnonymusUserExtended

Loads the POSTPAY Line Item Payment for the anonymus user from the TestShop

Syntax
LoadPOSTPAYLineItemPaymentAnonymusUserExtended();
Return
$LineItemPayment (object)
LineItemPayment

LoadPOSTPAYLineItemPaymentRegisteredUser

Loads the POSTPAY Line Item Payment for the registered user from the TestShop

Syntax
LoadPOSTPAYLineItemPaymentRegisteredUser();
Return
$LineItemPayment (object)
LineItemPayment

LoadPOSTPAYPayment

Loads the POSTPAY Payment from the TestShop

Syntax
LoadPOSTPAYPayment();
Return
$PaymentMethod (object)
PaymentMethod

LoadTestShop

Loads the the TestShop

Syntax
LoadTestShop();
Return
$Shop (object)
Shop