You are here

function DomainCreateTest::testDomainMacineNameLoad in Domain Access 7.3

File

tests/domain.test, line 280
Simpletest for Domain Access.

Class

DomainCreateTest

Code

function testDomainMacineNameLoad() {

  // For completeness, we should use hook_domain_load() to add data...
  $this
    ->domainCreateDomains();
  $domains = domain_domains();
  foreach ($domains as $domain) {
    $load = domain_machine_name_load($domain['machine_name'], TRUE);
    $this
      ->assertTrue($load['domain_id'] == $domain['domain_id'], t('Loaded domain by machine name.'));
  }
}