Skip to content

Commit

Permalink
Make PHPUnit bootstrap add flush=1
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Minnee committed Aug 14, 2012
1 parent b952211 commit e003796
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
$frameworkPath = dirname(dirname(__FILE__));
$frameworkDir = basename($frameworkPath);

$_GET['flush'] = 1;
$_SERVER['SCRIPT_FILENAME'] = $frameworkPath . DIRECTORY_SEPARATOR . 'cli-script.php';
$_SERVER['SCRIPT_NAME'] = '.' . DIRECTORY_SEPARATOR . $frameworkDir . DIRECTORY_SEPARATOR . 'cli-script.php';

Expand Down Expand Up @@ -70,4 +71,4 @@
"Add flush=1 as an argument to discover new classes or files.\n",
false
);
}
}
5 changes: 4 additions & 1 deletion tests/travis/_ss_environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@
define('SS_ENVIRONMENT_TYPE', 'dev');

/* 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_PASSWORD', '');
define('SS_DATABASE_CHOOSE_NAME', true);

/* 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_PASSWORD', 'password');

$_FILE_TO_URL_MAPPING[dirname(__FILE__)] = 'http://localhost';

0 comments on commit e003796

Please sign in to comment.