public function UcAddressesViewsTestCase::setUp in Ubercart Addresses 6.2
Same name and namespace in other branches
- 7 tests/uc_addresses.views.test \UcAddressesViewsTestCase::setUp()
Setup.
Overrides UcAddressesTestCase::setUp
File
- tests/
uc_addresses.views.test, line 40 - Test cases for Views integration.
Class
- UcAddressesViewsTestCase
- Test cases for Views integration.
Code
public function setUp() {
parent::setUp();
drupal_install_modules(array(
'views',
));
drupal_get_schema(NULL, TRUE);
$this
->checkPermissions(array(), TRUE);
// 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);
}