]> git.agnieray.net Git - galette.git/blobdiff - tests/TestsBootstrap.php
Create and load fixtures from file rather than rely on faker
[galette.git] / tests / TestsBootstrap.php
index bd85817c833ed7ec49dceed52edb3daf82ded03e..c46c01e85c349bbc0bba61aca83e2bae1bbc7fdc 100755 (executable)
@@ -33,11 +33,12 @@ if ($db === false || $db !== 'pgsql') {
 define('GALETTE_CONFIG_PATH', __DIR__ . '/config/' . $db . '/');
 define('GALETTE_BASE_PATH', $basepath);
 define('GALETTE_TESTS', true);
+define('GALETTE_TESTS_PATH', __DIR__);
 define('GALETTE_MODE', 'PROD');
-define('GALETTE_PLUGINS_PATH', __DIR__ . '/plugins/');
+define('GALETTE_PLUGINS_PATH', GALETTE_TESTS_PATH . '/plugins/');
 define('GALETTE_TPL_SUBDIR', 'templates/default/');
 define('GALETTE_THEME', 'themes/default/');
-define('GALETTE_DATA_PATH', __DIR__ . '/tests-data/');
+define('GALETTE_DATA_PATH', GALETTE_TESTS_PATH . '/tests-data/');
 if (is_dir(GALETTE_DATA_PATH)) {
     $files = new RecursiveIteratorIterator(
         new RecursiveDirectoryIterator(