1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 16:34:04 +00:00

Re-create tmp dir as well if needed

This commit is contained in:
Samuel Štancl 2022-03-30 17:44:02 +02:00
parent c285f1faf4
commit f7d0451545
4 changed files with 13 additions and 3 deletions

View file

@ -67,6 +67,11 @@ class QueueTest extends TestCase
$valueStorePath = __DIR__ . '/Etc/tmp/queuetest.json';
if (! file_exists($valueStorePath)) {
// The directory sometimes goes missing as well when the file is deleted in git
if (! is_dir(__DIR__ . '/Etc/tmp')) {
mkdir(__DIR__ . '/Etc/tmp');
}
file_put_contents($valueStorePath, '');
}