From 764ec006839636a5dc7bd6bf65760037570a16c0 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 21 May 2015 15:11:36 +0200 Subject: tests: Rework database handling We no longer interfere with the normal installation's database settings. Signed-off-by: Florian Pritz --- application/config/example/database.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'application/config') diff --git a/application/config/example/database.php b/application/config/example/database.php index 51b666b38..7a0e63d56 100644 --- a/application/config/example/database.php +++ b/application/config/example/database.php @@ -64,6 +64,13 @@ $db['default']['swap_pre'] = ''; $db['default']['autoinit'] = TRUE; $db['default']['stricton'] = FALSE; +if (getenv("ENVIRONMENT") === "testsuite") { + // Change these to your likeing, just make sure they + // don't overlap with the normal settings. + $db['default']['database'] = "filebin_testsuite"; + $db['default']['dbprefix'] = "testsuite-prefix-"; +} + /* End of file database.php */ /* Location: ./application/config/database.php */ \ No newline at end of file -- cgit v1.2.3-24-g4f1b