[ class tree: swipestripe ] [ index: swipestripe ] [ all elements ]

Class: CheckoutTest

Source Location: /tests/CheckoutTest.php

Class Overview


Testing Order modifiers at checkout.



  • 1.0


  • Copyright (c) 2011, Frank Mullenger



Class Details

[line 31]
Testing Order modifiers at checkout.

Summary of tests: ----------------- checkout published product unpublish product after it is in the cart cannot checkout delete product after it is in the cart cannot checkout add variation then disable the variation, cannot checkout add variation to cart then delete variation cannot checkout submit checkout without products in cart checkout with product that has attributes, without a variation set submit checkout without necessary details submit checkout without specifying payment gateway

TODO ---- process payment send receipt checkout addresses correct when attribute deleted cannot checkout variation when attribute deleted previous orders keep data


author:  Frank Mullenger <frankmullenger@gmail.com>
version:  1.0
copyright:  Copyright (c) 2011, Frank Mullenger

[ Top ]

Class Variables

static $disable_themes =  true

[line 34]

Type:   mixed

[ Top ]

static $fixture_file =  'swipestripe/tests/Shop.yml'

[line 33]

Type:   mixed

[ Top ]

static $use_draft_site =  false

[line 35]

Type:   mixed

[ Top ]

Class Methods

method getFormData [line 77]

Array getFormData( String $formID)

Helper to get data from a form.


String   $formID  

[ Top ]

method logOut [line 67]

void logOut( )

Log current member out by clearing session

[ Top ]

method setUp [line 37]

void setUp( )

[ Top ]

method testCheckoutWithDeletedProduct [line 193]

void testCheckoutWithDeletedProduct( )

Try to checkout a deleted product

[ Top ]

method testCheckoutWithDeletedVariation [line 304]

void testCheckoutWithDeletedVariation( )

Try to checkout a deleted variation

[ Top ]

method testCheckoutWithDisabledVariation [line 245]

void testCheckoutWithDisabledVariation( )

Try to checkout a disabled variation

[ Top ]

method testCheckoutWithoutPaymentGateway [line 503]

void testCheckoutWithoutPaymentGateway( )

Try checking out an order without specifying a payment gateway

[ Top ]

method testCheckoutWithoutProducts [line 362]

void testCheckoutWithoutProducts( )

Try to checkout without products added to the order

[ Top ]

method testCheckoutWithoutRequiredFields [line 455]

void testCheckoutWithoutRequiredFields( )

Try to submit the checkout form without some required fields

Assumes that billing FirstName is always required

[ Top ]

method testCheckoutWithoutRequiredVariation [line 395]

void testCheckoutWithoutRequiredVariation( )

Try to checkout with a product that requires a variation, without a variation in the cart

[ Top ]

method testCheckoutWithPublishedProduct [line 101]

void testCheckoutWithPublishedProduct( )

Create product and check basic attributes

[ Top ]

method testCheckoutWithUnpublishedProduct [line 141]

void testCheckoutWithUnpublishedProduct( )

Try to checkout an unpublished product

[ Top ]

Documentation generated on Thu, 08 Mar 2012 16:47:25 +1300 by phpDocumentor 1.4.4