You are here

function ucRecurringTestCase::createRecurringUsers in UC Recurring Payments and Subscriptions 6.2

Same name and namespace in other branches
  1. 7.2 uc_recurring.test \ucRecurringTestCase::createRecurringUsers()

Create users with recurring permissions.

3 calls to ucRecurringTestCase::createRecurringUsers()
ucRecurringAPITestCase::setUp in ./uc_recurring.test
Configure basic Ubercart store components.
ucRecurringIntegrationTestCase::setUp in ./uc_recurring.test
Configure basic Ubercart store components.
ucRecurringPaypalWPSTestCase::setUp in modules/uc_recurring_hosted/uc_recurring_hosted.test
Configure basic Ubercart store components.

File

./uc_recurring.test, line 38
UC Recurring simpletest

Class

ucRecurringTestCase
@file UC Recurring simpletest

Code

function createRecurringUsers() {

  // Create a store administrator user account.
  $this->user_recurring_admin = $this
    ->drupalCreateUser(array(
    'administer conditional actions',
    'administer order workflow',
    'create orders',
    'delete orders',
    'edit orders',
    'view all orders',
    'administer product classes',
    'administer product features',
    'administer products',
    'create products',
    'delete all products',
    'edit all products',
    'administer store',
    'view customers',
    'view store reports',
    'administer recurring fees',
  ));
  $this->user_recurring_customer = $this
    ->drupalCreateUser(array(
    'view own orders',
    'view own recurring fees',
  ));
}