Skip to content
This repository
Browse code

Make PHPUnit bootstrap add flush=1

  • Loading branch information...
commit e0037967c2f1efe23002ba8a87ce147683066167 1 parent b952211
Sam Minnée authored August 14, 2012
3  tests/bootstrap.php
@@ -20,6 +20,7 @@
20 20
 $frameworkPath = dirname(dirname(__FILE__));
21 21
 $frameworkDir = basename($frameworkPath);
22 22
 
  23
+$_GET['flush'] = 1;
23 24
 $_SERVER['SCRIPT_FILENAME'] = $frameworkPath . DIRECTORY_SEPARATOR . 'cli-script.php';
24 25
 $_SERVER['SCRIPT_NAME'] = '.' . DIRECTORY_SEPARATOR . $frameworkDir . DIRECTORY_SEPARATOR . 'cli-script.php'; 
25 26
 
@@ -70,4 +71,4 @@
70 71
 		"Add flush=1 as an argument to discover new classes or files.\n",
71 72
 		false
72 73
 	);
73  
-}
  74
+}
5  tests/travis/_ss_environment.php
@@ -4,7 +4,8 @@
4 4
 define('SS_ENVIRONMENT_TYPE', 'dev');
5 5
 
6 6
 /* Database connection */ 
7  
-define('SS_DATABASE_SERVER', 'localhost'); 
  7
+define('SS_DATABASE_CLASS', 'SQLite3Database');
  8
+define('SS_DATABASE_SERVER', ':memory:'); 
8 9
 define('SS_DATABASE_USERNAME', 'root'); 
9 10
 define('SS_DATABASE_PASSWORD', '');
10 11
 define('SS_DATABASE_CHOOSE_NAME', true);
@@ -12,3 +13,5 @@
12 13
 /* Configure a default username and password to access the CMS on all sites in this environment. */ 
13 14
 define('SS_DEFAULT_ADMIN_USERNAME', 'username'); 
14 15
 define('SS_DEFAULT_ADMIN_PASSWORD', 'password');
  16
+
  17
+$_FILE_TO_URL_MAPPING[dirname(__FILE__)] = 'http://localhost';

0 notes on commit e003796

Please sign in to comment.
Something went wrong with that request. Please try again.