(NFC) Version Check Test - Fix multi-user and concurrent execution
authorTim Otten <totten@civicrm.org>
Thu, 23 Mar 2023 22:22:10 +0000 (15:22 -0700)
committerTim Otten <totten@civicrm.org>
Thu, 23 Mar 2023 22:28:18 +0000 (15:28 -0700)
commit37125ae491e15facd6435a7f0ec53939b1c2c26a
treebdb60dc4a75ed5fd3934c7cf7ed28749bee8e8dd
parentf400fd1e5c52f2a70cb48eb4ebc1a508350a1269
(NFC) Version Check Test - Fix multi-user and concurrent execution

This is a small change to the way the tests run. It doesn't change the meaning of the test.

Before
------

* Writes example file to `/tmp/versionCheckTestFile.json`.
* File left behind at end of test.
* If two users runs the same test at different times, they could interfere with each other.
* If two processes run the same test at the same time, they could interfere with each other.

After
-----

* Writes example file to `/tmp/VersionCheck-NNNNNNN/versionCheckTestFile.json`
* Temp folder cleaned up at end
* If two users or two processes run the test, they use separate folders
tests/phpunit/CRM/Utils/versionCheckTest.php