function setUp() { parent::setUp(); Director::set_environment_type('dev'); //Check that payment module is installed $this->assertTrue(class_exists('Payment'), 'Payment module is installed.'); }
function setUp() { FlatFeeShipping::enable(); parent::setUp(); //Check that payment module is installed $this->assertTrue(class_exists('Payment'), 'Payment module is installed.'); $this->assertTrue(class_exists('ChequePayment'), 'Cheque Payment is installed.'); $this->assertTrue(class_exists('FlatFeeShipping'), 'Flat Fee Shipping is installed.'); //Force payment method to be basic cheque payment Payment::set_supported_methods(array('ChequePayment' => 'Cheque Or Pay On Site')); }
function setUp() { parent::setUp(); //Check that payment module is installed $this->assertTrue(class_exists('Payment'), 'Payment module is installed.'); //Need to publish a few pages because not using the draft site $checkoutPage = $this->objFromFixture('CheckoutPage', 'checkout'); $accountPage = $this->objFromFixture('AccountPage', 'account'); $cartPage = $this->objFromFixture('CartPage', 'cart'); $this->loginAs('admin'); $checkoutPage->doPublish(); $accountPage->doPublish(); $cartPage->doPublish(); $this->logOut(); }
function setUp() { parent::setUp(); //Check that payment module is installed $this->assertTrue(class_exists('Payment'), 'Payment module is installed.'); $this->assertTrue(class_exists('ChequePayment'), 'Cheque Payment is installed.'); //Need to publish a few pages because not using the draft site $checkoutPage = $this->objFromFixture('CheckoutPage', 'checkout'); $accountPage = $this->objFromFixture('AccountPage', 'account'); $cartPage = $this->objFromFixture('CartPage', 'cart'); $this->loginAs('admin'); $checkoutPage->doPublish(); $accountPage->doPublish(); $cartPage->doPublish(); $this->logOut(); //Force payment method to be basic cheque payment Payment::set_supported_methods(array('ChequePayment' => 'Cheque Or Pay On Site')); }
function setUp() { parent::setUp(); }
function setUp() { parent::setUp(); $category = $this->objFromFixture('ProductCategory', 'general'); $this->assertTrue(is_numeric($category->ID)); }