Skip to content

Commit

Permalink
only synchronizeUsers in tests if system allows
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin authored and ufundo committed Feb 23, 2024
1 parent 4a29128 commit 7d8c738
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ext/authx/tests/phpunit/Civi/Authx/AbstractFlowsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static function setUpBeforeClass(): void {
->installMe(__DIR__)
->callback(
function() {
\CRM_Utils_System::synchronizeUsers();
\CRM_Utils_System::synchronizeUsersIfAllowed();
},
'synchronizeUsers'
)
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/CiviTest/CiviEndToEndTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/E2E/Cache/CacheTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/E2E/Extern/AuthxRestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static function setUpBeforeClass(): void {
->install(['authx'])
->callback(
function() {
\CRM_Utils_System::synchronizeUsers();
\CRM_Utils_System::synchronizeUsersIfAllowed();
},
'synchronizeUsers'
)
Expand Down

0 comments on commit 7d8c738

Please sign in to comment.