You are here

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

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

Create users with recurring permissions.

3 calls to ucRecurringTestCase::createRecurringUsers()
ucRecurringAPITestCase::setUp in ./uc_recurring.test
ucRecurringIntegrationTestCase::setUp in ./uc_recurring.test
ucRecurringPaypalWPSTestCase::setUp in modules/uc_recurring_hosted/uc_recurring_hosted.test

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',
  ));
}