mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Make PHPUnit bootstrap add flush=1
This commit is contained in:
parent
50b4d805cc
commit
4d1c2ed4fc
@ -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';
|
||||||
|
|
||||||
|
@ -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';
|
||||||
|
Loading…
Reference in New Issue
Block a user