Make PHPUnit bootstrap add flush=1

This commit is contained in:
Sam Minnee 2012-08-14 16:44:32 +12:00
parent 50b4d805cc
commit 4d1c2ed4fc
2 changed files with 6 additions and 2 deletions

View File

@ -20,6 +20,7 @@ if (!$_SERVER) $_SERVER = array();
$frameworkPath = dirname(dirname(__FILE__)); $frameworkPath = dirname(dirname(__FILE__));
$frameworkDir = basename($frameworkPath); $frameworkDir = basename($frameworkPath);
$_GET['flush'] = 1;
$_SERVER['SCRIPT_FILENAME'] = $frameworkPath . DIRECTORY_SEPARATOR . 'cli-script.php'; $_SERVER['SCRIPT_FILENAME'] = $frameworkPath . DIRECTORY_SEPARATOR . 'cli-script.php';
$_SERVER['SCRIPT_NAME'] = '.' . DIRECTORY_SEPARATOR . $frameworkDir . DIRECTORY_SEPARATOR . 'cli-script.php'; $_SERVER['SCRIPT_NAME'] = '.' . DIRECTORY_SEPARATOR . $frameworkDir . DIRECTORY_SEPARATOR . 'cli-script.php';

View File

@ -4,7 +4,8 @@ ob_start();
define('SS_ENVIRONMENT_TYPE', 'dev'); define('SS_ENVIRONMENT_TYPE', 'dev');
/* Database connection */ /* Database connection */
define('SS_DATABASE_SERVER', 'localhost'); define('SS_DATABASE_CLASS', 'SQLite3Database');
define('SS_DATABASE_SERVER', ':memory:');
define('SS_DATABASE_USERNAME', 'root'); define('SS_DATABASE_USERNAME', 'root');
define('SS_DATABASE_PASSWORD', ''); define('SS_DATABASE_PASSWORD', '');
define('SS_DATABASE_CHOOSE_NAME', true); define('SS_DATABASE_CHOOSE_NAME', true);
@ -12,3 +13,5 @@ define('SS_DATABASE_CHOOSE_NAME', true);
/* Configure a default username and password to access the CMS on all sites in this environment. */ /* Configure a default username and password to access the CMS on all sites in this environment. */
define('SS_DEFAULT_ADMIN_USERNAME', 'username'); define('SS_DEFAULT_ADMIN_USERNAME', 'username');
define('SS_DEFAULT_ADMIN_PASSWORD', 'password'); define('SS_DEFAULT_ADMIN_PASSWORD', 'password');
$_FILE_TO_URL_MAPPING[dirname(__FILE__)] = 'http://localhost';