diff --git a/ext/authx/tests/phpunit/Civi/Authx/AbstractFlowsTest.php b/ext/authx/tests/phpunit/Civi/Authx/AbstractFlowsTest.php index 63482574936d..3c9cb3121465 100644 --- a/ext/authx/tests/phpunit/Civi/Authx/AbstractFlowsTest.php +++ b/ext/authx/tests/phpunit/Civi/Authx/AbstractFlowsTest.php @@ -32,7 +32,7 @@ public static function setUpBeforeClass(): void { ->installMe(__DIR__) ->callback( function() { - \CRM_Utils_System::synchronizeUsers(); + \CRM_Utils_System::synchronizeUsersIfAllowed(); }, 'synchronizeUsers' ) diff --git a/tests/phpunit/CiviTest/CiviEndToEndTestCase.php b/tests/phpunit/CiviTest/CiviEndToEndTestCase.php index 4434150e53a7..8980fbc69b86 100644 --- a/tests/phpunit/CiviTest/CiviEndToEndTestCase.php +++ b/tests/phpunit/CiviTest/CiviEndToEndTestCase.php @@ -17,7 +17,7 @@ public static function setUpBeforeClass(): void { 'name' => $GLOBALS['_CV']['ADMIN_USER'], 'pass' => $GLOBALS['_CV']['ADMIN_PASS'], ]); - CRM_Utils_System::synchronizeUsers(); + CRM_Utils_System::synchronizeUsersIfAllowed(); parent::setUpBeforeClass(); } diff --git a/tests/phpunit/E2E/Cache/CacheTestCase.php b/tests/phpunit/E2E/Cache/CacheTestCase.php index fe2703003063..b46c2662d258 100644 --- a/tests/phpunit/E2E/Cache/CacheTestCase.php +++ b/tests/phpunit/E2E/Cache/CacheTestCase.php @@ -24,7 +24,7 @@ public static function setUpBeforeClass(): void { 'name' => $GLOBALS['_CV']['ADMIN_USER'], 'pass' => $GLOBALS['_CV']['ADMIN_PASS'], ]); - CRM_Utils_System::synchronizeUsers(); + \CRM_Utils_System::synchronizeUsersIfAllowed(); parent::setUpBeforeClass(); } diff --git a/tests/phpunit/E2E/Extern/AuthxRestTest.php b/tests/phpunit/E2E/Extern/AuthxRestTest.php index bfa8f748ded6..5a270cde9168 100644 --- a/tests/phpunit/E2E/Extern/AuthxRestTest.php +++ b/tests/phpunit/E2E/Extern/AuthxRestTest.php @@ -22,7 +22,7 @@ public static function setUpBeforeClass(): void { ->install(['authx']) ->callback( function() { - \CRM_Utils_System::synchronizeUsers(); + \CRM_Utils_System::synchronizeUsersIfAllowed(); }, 'synchronizeUsers' )