Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make PHPUnit bootstrap add flush=1

  • Loading branch information...
commit e0037967c2f1efe23002ba8a87ce147683066167 1 parent b952211
@sminnee sminnee authored
Showing with 6 additions and 2 deletions.
  1. +2 −1  tests/bootstrap.php
  2. +4 −1 tests/travis/_ss_environment.php
View
3  tests/bootstrap.php
@@ -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';
@@ -70,4 +71,4 @@
"Add flush=1 as an argument to discover new classes or files.\n",
false
);
-}
+}
View
5 tests/travis/_ss_environment.php
@@ -4,7 +4,8 @@
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);
@@ -12,3 +13,5 @@
/* 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';
Please sign in to comment.
Something went wrong with that request. Please try again.