Open beerbohmdo opened 4 months ago
Related https://github.com/silverstripeltd/product-issues/issues/689 (private repo)
More directories which must be seeded :see_no_evil:
if ($token = getenv('TEST_TOKEN')) {
Requirements::backend()->setCombinedFilesFolder('_combinedfiles' . $token);
Config::modify()->set(TinyMCECombinedGenerator::class, 'filename_base', '_tinymce' . $token . '/tinymce-{name}-{hash}.js');
}
But this can be set inside a _config.php
Description
I want to use paratest, but I had sometimes weird issues because of the shared cache folder.
Paratest provides a
TEST_TOKEN
environment variable.I just tried to append this to the
TEMP_FOLDER
andSS_DATABASE_PREFIX
and all my issues went away. I currently hardcoded it toTempFolder
andTempDatabase
class, because I am not really sure how I seed them dynamically.As the
TEMP_FOLDER
is defined really early in the code and loaded by composer autoloader its hard to put custom code before that ...Any suggestion for a better way to handle this are welcome.
Additional context or points of discussion
My hacky and dirty way:
Validations