You are here

protected function UbercartAddressTestCase::setUp in Ubercart 7.3

Overrides DrupalWebTestCase::setUp().

Overrides UbercartTestHelper::setUp

File

uc_store/tests/uc_address.test, line 27
Tests for the UcAddress class.

Class

UbercartAddressTestCase
Tests for the UcAddress class.

Code

protected function setUp($modules = array(), $permissions = array()) {
  parent::setUp();

  // Create a random address object for use in tests.
  $this->test_address[] = $this
    ->createAddress();

  // Create a specific address object for use in tests.
  $settings = array(
    'first_name' => 'Elmo',
    'last_name' => 'Monster',
    'company' => 'CTW, Inc.',
    'street1' => '123 Sesame Street',
    'city' => 'New York',
    'zone' => 43,
    'country' => 840,
    'postal_code' => '10010',
    'phone' => '1234567890',
    'email' => 'elmo@ctw.org',
  );
  $this->test_address[] = $this
    ->createAddress($settings);
}