public function setUp() { parent::setUp(); Payment::config()->allowed_gateways = array('PayPal_Express', 'PaymentExpress_PxPay', 'Manual', 'Dummy'); Payment::config()->parameters = array('PaymentExpress_PxPay' => array('username' => 'EXAMPLEUSER', 'password' => '235llgwxle4tol23l')); //set up a payment here to make tests shorter $this->payment = Payment::create()->setGateway("Dummy")->setAmount(1222)->setCurrency("GBP"); PaymentService::set_http_client($this->getHttpClient()); PaymentService::set_http_request($this->getHttpRequest()); }
public function setUp() { parent::setUp(); ShopTest::setConfiguration(); //set supported gateways Payment::config()->allowed_gateways = array('Dummy', 'Manual', 'PaymentExpress_PxPay', 'PaymentExpress_PxPost'); PaymentService::set_http_client($this->getHttpClient()); PaymentService::set_http_request($this->getHttpRequest()); //publish products $this->objFromFixture("Product", "socks")->publish('Stage', 'Live'); $this->objFromFixture("CheckoutPage", "checkout")->publish('Stage', 'Live'); $this->objFromFixture("CartPage", "cart")->publish('Stage', 'Live'); }