Skip to content

Commit

Permalink
Merge pull request civicrm#11995 from eileenmcnaughton/odd
Browse files Browse the repository at this point in the history
Fix intermittant test bug
  • Loading branch information
seamuslee001 authored Apr 19, 2018
2 parents 671aab6 + 7671958 commit ab7f0f5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/phpunit/CRM/Contact/BAO/ContactTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1595,10 +1595,7 @@ public function testUpdateProfileLocationLeak() {
//create the contact using create profile contact.
$fields = CRM_Contact_BAO_Contact::exportableFields('Individual');

// for this test, we need to make CiviCRM think we are logged in
// so that updateBlankLocInfo is set to 1 (erase blank value from the database)
CRM_Core_Session::singleton()->set('authSrc', CRM_Core_Permission::AUTH_SRC_LOGIN);

$this->createLoggedInUser();
// now, emulate the contact update using a profile
$contactID = CRM_Contact_BAO_Contact::createProfileContact($updatePfParams, $fields, $contactId,
NULL, NULL, NULL, TRUE
Expand Down

0 comments on commit ab7f0f5

Please sign in to comment.