ContactTestTrait::createLoggedInUser() - Fix domain_id error when running from extension
authorTim Otten <totten@civicrm.org>
Sat, 13 Apr 2019 00:42:40 +0000 (17:42 -0700)
committerTim Otten <totten@civicrm.org>
Sat, 13 Apr 2019 03:04:56 +0000 (20:04 -0700)
Civi/Test/ContactTestTrait.php

index 38307564dd2a10afbbd05ef47952bc1b2853434b..448231bb197312cd3cea3bb6ada85c8a758c6625 100644 (file)
@@ -29,6 +29,7 @@ trait ContactTestTrait {
       'first_name' => 'Logged In',
       'last_name' => 'User ' . rand(),
       'contact_type' => 'Individual',
+      'domain_id' => \CRM_Core_Config::domainID(),
     );
     $contactID = $this->individualCreate($params);
     $this->callAPISuccess('UFMatch', 'create', array(