Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUGFIX Fixing bootstrap.php to work with FakeController properly for

running tests using phpunit.xml file.
  • Loading branch information...
commit 8b607db0a23f0a227491248db1406d0f8d183492 1 parent f546ab2
Sean Harvey halkyon authored
Showing with 4 additions and 2 deletions.
  1. +1 −1  main.php
  2. +3 −1 tests/bootstrap.php
2  main.php
View
@@ -96,7 +96,7 @@
}
// Connect to database
-require_once("model/DB.php");
+require_once('model/DB.php');
// Redirect to the installer if no database is selected
if(!isset($databaseConfig) || !isset($databaseConfig['database']) || !$databaseConfig['database']) {
4 tests/bootstrap.php
View
@@ -37,7 +37,9 @@
$_GET['flush'] = 1;
// Connect to database
-require_once($frameworkPath . "/core/Core.php");
+require_once $frameworkPath . '/core/Core.php';
+require_once $frameworkPath . '/tests/FakeController.php';
+
global $databaseConfig;
DB::connect($databaseConfig);
Please sign in to comment.
Something went wrong with that request. Please try again.