From 8f35c195ff04cd3d08174fd92304dd279e66456f Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 19 Feb 2021 17:22:05 -0800 Subject: [PATCH] AllFlowsTest - When executing on a new deployment, ensure demo user has a Civi contact --- ext/authx/tests/phpunit/Civi/Authx/AllFlowsTest.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ext/authx/tests/phpunit/Civi/Authx/AllFlowsTest.php b/ext/authx/tests/phpunit/Civi/Authx/AllFlowsTest.php index 9618823899..ae3e6a164f 100644 --- a/ext/authx/tests/phpunit/Civi/Authx/AllFlowsTest.php +++ b/ext/authx/tests/phpunit/Civi/Authx/AllFlowsTest.php @@ -35,7 +35,15 @@ class AllFlowsTest extends \PHPUnit\Framework\TestCase implements EndToEndInterf protected $quirks = []; public static function setUpBeforeClass() { - \Civi\Test::e2e()->installMe(__DIR__)->apply(); + \Civi\Test::e2e() + ->installMe(__DIR__) + ->callback( + function() { + \CRM_Utils_System::synchronizeUsers(); + }, + 'synchronizeUsers' + ) + ->apply(); } public function setUp() { -- 2.25.1