Skip to content
This repository was archived by the owner on May 18, 2024. It is now read-only.

Bootstrap Common.php #8

Merged
merged 3 commits into from
Feb 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/tests/_support/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@
define('PROJECTSUPPORTPATH', realpath(__DIR__) . DIRECTORY_SEPARATOR);
define('TESTPATH', realpath(PROJECTSUPPORTPATH . '../') . DIRECTORY_SEPARATOR);

// Let's see if an app/Common.php file exists
if (file_exists(APPPATH . 'Common.php'))
{
require_once APPPATH . 'Common.php';
}

// Require system/Common.php
require_once SYSTEMPATH . 'Common.php';

// Set environment values that would otherwise stop the framework from functioning during tests.
if (! isset($_SERVER['app.baseURL']))
{
Expand Down