Skip to content

Commit

Permalink
Make sure legacy env is 'test' for behat tests instead of 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
matks committed Aug 20, 2019
1 parent 2e0c050 commit 5e93840
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion config/defines.inc.php
Expand Up @@ -69,7 +69,14 @@
define('_PS_BO_ALL_THEMES_DIR_', _PS_ADMIN_DIR_.'/themes/');
}
if (!defined('_PS_CACHE_DIR_')) {
$prestashopCacheDir = _PS_ROOT_DIR_.'/var/cache/'.(_PS_MODE_DEV_ ? 'dev': 'prod'). DIRECTORY_SEPARATOR;

if (defined('_PS_IN_TEST_')) {
$env = 'test';
} else {
$env = (_PS_MODE_DEV_) ? 'dev': 'prod';
}

$prestashopCacheDir = _PS_ROOT_DIR_.'/var/cache/'.$env. DIRECTORY_SEPARATOR;
define('_PS_CACHE_DIR_', $prestashopCacheDir);
}
define('_PS_CONFIG_DIR_', _PS_CORE_DIR_.'/config/');
Expand Down

0 comments on commit 5e93840

Please sign in to comment.