| 123456789101112131415161718192021222324252627282930 |
- <?php
- /**
- * Test runner bootstrap.
- *
- * Add additional configuration/setup your application needs when running
- * unit tests in this file.
- */
- //require dirname(__DIR__) . '/../Config/bootstrap.php';
- define('DS', DIRECTORY_SEPARATOR);
- define('ROOT', dirname(dirname(dirname(dirname(__FILE__)))));
- define('APP_DIR', 'App');
- define('WEBROOT_DIR', 'webroot');
- define('APP', ROOT . DS . APP_DIR . DS);
- define('WWW_ROOT', ROOT . DS . WEBROOT_DIR . DS);
- define('TESTS', ROOT . DS . 'Test' . DS);
- define('TMP', ROOT . DS . 'tmp' . DS);
- define('LOGS', TMP . 'logs' . DS);
- define('CACHE', TMP . 'cache' . DS);
- define('CAKE_CORE_INCLUDE_PATH', ROOT . '/vendor/cakephp/cakephp');
- define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
- define('CAKE', CORE_PATH . 'src' . DS);
- require ROOT . '/vendor/cakephp/cakephp/src/basics.php';
- require ROOT . '/vendor/autoload.php';
- $TMP = new \Cake\Utility\Folder(TMP);
- $TMP->create(TMP . 'cache/models', 0777);
- $TMP->create(TMP . 'cache/persistent', 0777);
- $TMP->create(TMP . 'cache/views', 0777);
|