function CommercePaymentUITest::setUp in Commerce Core 7
Implementation of setUp().
Overrides DrupalWebTestCase::setUp
File
- modules/
payment/ tests/ commerce_payment_ui.test, line 31 - Functional tests for the commerce payment module user interface.
Class
- CommercePaymentUITest
- Test payment user interface.
Code
function setUp() {
$modules = parent::setUpHelper('all');
parent::setUp($modules);
// User creation for different operations.
$this->store_admin = $this
->createStoreAdmin();
$this->store_customer = $this
->createStoreCustomer();
// The rule that sends a mail after checkout completion should be disabled
// as it returns an error caused by how mail messages are stored.
$rules_config = rules_config_load('commerce_checkout_order_email');
$rules_config->active = FALSE;
$rules_config
->save();
}