From 3ed232a50a656e813030cbcb02c55701a5ec987d Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 26 Nov 2019 13:58:07 -0500 Subject: [PATCH] Fix potential test glitch when repeatedly calling createLoggedInUser --- Civi/Test/ContactTestTrait.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Civi/Test/ContactTestTrait.php b/Civi/Test/ContactTestTrait.php index f3e85083d92e..cb64e989e38c 100644 --- a/Civi/Test/ContactTestTrait.php +++ b/Civi/Test/ContactTestTrait.php @@ -31,6 +31,7 @@ public function createLoggedInUser() { 'domain_id' => \CRM_Core_Config::domainID(), ]; $contactID = $this->individualCreate($params); + $this->callAPISuccess('UFMatch', 'get', ['uf_id' => 6, 'api.UFMatch.delete' => []]); $this->callAPISuccess('UFMatch', 'create', [ 'contact_id' => $contactID, 'uf_name' => 'superman',