Fix unit test paths

This commit is contained in:
Thilina Hasantha
2018-05-01 17:05:21 +02:00
parent f803f4265d
commit 257071da2d
3 changed files with 5 additions and 5 deletions

View File

@@ -105,8 +105,8 @@ class TestTemplate extends PHPUnit_Framework_TestCase
exec($createDBCommand);
$scripts = array(
APP_BASE_PATH."scripts/icehrmdb.sql",
APP_BASE_PATH."scripts/icehrm_master_data.sql"
APP_BASE_PATH."core/scripts/icehrmdb.sql",
APP_BASE_PATH."core/scripts/icehrm_master_data.sql"
);
foreach ($scripts as $insql) {

View File

@@ -13,13 +13,13 @@ define('CLIENT_NAME', 'app');
if (!defined('MYSQL_ROOT_USER') || !defined('MYSQL_ROOT_PASS')) {
//Tests running on vagrant
define('APP_BASE_PATH', TEST_BASE_PATH.'../');
define('APP_BASE_PATH', TEST_BASE_PATH.'../core/');
define('CLIENT_BASE_PATH', TEST_BASE_PATH.'../../deployment/clients/test/');
define('BASE_URL', 'http://app.app.dev/');
define('CLIENT_BASE_URL', 'http://clients.app.dev/dev/');
} else {
//Tests running on deploy
define('APP_BASE_PATH', realpath(dirname(__FILE__).'/../app')."/");
define('APP_BASE_PATH', realpath(dirname(__FILE__).'/../app')."/core/");
define('CLIENT_BASE_PATH', APP_BASE_PATH.'');
define('BASE_URL', 'http://apps.gamonoid.com/icehrmcore/');
define('CLIENT_BASE_URL', 'http://apps.gamonoid.com/icehrm/');

View File

@@ -34,5 +34,5 @@ if (!class_exists('SessionUtils')) {
if (!class_exists('TestTemplate')) {
include(dirname(__FILE__).'/TestTemplate.php');
include(dirname(__FILE__).'/helper/EmployeeTestDataHelper.php');
include(APP_BASE_PATH."core/includes.inc.php");
include(APP_BASE_PATH."includes.inc.php");
}