public function UcAddressesViewsTestCase::setUp in Ubercart Addresses 7
Same name and namespace in other branches
- 6.2 tests/uc_addresses.views.test \UcAddressesViewsTestCase::setUp()
Setup.
Overrides UcAddressesTestCase::setUp
File
- tests/
uc_addresses.views.test, line 37 - Test cases for Views integration.
Class
- UcAddressesViewsTestCase
- Test cases for Views integration.
Code
public function setUp() {
parent::setUp();
module_enable(array(
'views',
));
// Create a number of users with two addresses each.
$this
->UcAddressesCreateUsers();
foreach ($this->accounts as $account) {
$this
->UcAddressesCreateAddresses($account);
}
// Create addresses for the basic user too.
$this
->UcAddressesCreateAddresses($this->basicUser);
}