Esempio n. 1
0
 public function setUp()
 {
     parent::setUp();
     $this->loginAs('admin');
     $this->objFromFixture('AccountPage', 'account')->doPublish();
     $this->logOut();
 }
Esempio n. 2
0
 public function setUp()
 {
     parent::setUp();
     Director::set_environment_type('dev');
     //Check that payment module is installed
     $this->assertTrue(class_exists('Payment'), 'Payment module is installed.');
 }
Esempio n. 3
0
 function setUp()
 {
     parent::setUp();
     //Check that payment module is installed
     $this->assertTrue(class_exists('Payment'), 'Payment module is installed.');
     $this->assertTrue(class_exists('ChequeGateway'), 'Cheque Payment is installed.');
     //Need to publish a few pages because not using the draft site
     $this->loginAs('admin');
     $this->objFromFixture('CheckoutPage', 'checkout')->doPublish();
     $this->objFromFixture('AccountPage', 'account')->doPublish();
     $this->objFromFixture('CartPage', 'cart')->doPublish();
     $this->logOut();
     Config::inst()->remove('PaymentProcessor', 'supported_methods');
     Config::inst()->update('PaymentProcessor', 'supported_methods', array('test' => array('Cheque')));
     Config::inst()->remove('PaymentGateway', 'environment');
     Config::inst()->update('PaymentGateway', 'environment', 'test');
 }
 public function setUp()
 {
     parent::setUp();
     $category = $this->objFromFixture('ProductCategory', 'general');
     $this->assertTrue(is_numeric($category->ID));
 }
Esempio n. 5
0
 function setUp()
 {
     parent::setUp();
 }