PMCORE-1203 Help on how batch routing feature works and help to debug the code with a client
This commit is contained in:
@@ -7,6 +7,7 @@ use G;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
use pmTablesProxy;
|
||||
use ProcessMaker\BusinessModel\ReportTable;
|
||||
use Tests\CreateTestSite;
|
||||
use Tests\TestCase;
|
||||
|
||||
/**
|
||||
@@ -14,6 +15,7 @@ use Tests\TestCase;
|
||||
*/
|
||||
class PmTablesProxyTest extends TestCase
|
||||
{
|
||||
use CreateTestSite;
|
||||
use DatabaseTransactions;
|
||||
|
||||
protected $preserveGlobalState = false;
|
||||
@@ -40,30 +42,8 @@ class PmTablesProxyTest extends TestCase
|
||||
parent::setUp();
|
||||
|
||||
config(["system.workspace" => SYS_SYS]);
|
||||
|
||||
$workspace = config("system.workspace");
|
||||
|
||||
if (!file_exists(PATH_DB . $workspace)) {
|
||||
G::mk_dir(PATH_DB . $workspace);
|
||||
}
|
||||
|
||||
if (!file_exists(PATH_DB . $workspace . PATH_SEP . "db.php")) {
|
||||
$myfile = fopen(PATH_DB . $workspace . PATH_SEP . "db.php", "w");
|
||||
fwrite($myfile, "<?php
|
||||
define ('DB_ADAPTER', 'mysql' );
|
||||
define ('DB_HOST', '" . env('DB_HOST') . "' );
|
||||
define ('DB_NAME', '" . env('DB_DATABASE') . "' );
|
||||
define ('DB_USER', '" . env('DB_USERNAME') . "' );
|
||||
define ('DB_PASS', '" . env('DB_PASSWORD') . "' );
|
||||
define ('DB_RBAC_HOST', '" . env('DB_HOST') . "' );
|
||||
define ('DB_RBAC_NAME', '" . env('DB_DATABASE') . "' );
|
||||
define ('DB_RBAC_USER', '" . env('DB_USERNAME') . "' );
|
||||
define ('DB_RBAC_PASS', '" . env('DB_PASSWORD') . "' );
|
||||
define ('DB_REPORT_HOST', '" . env('DB_HOST') . "' );
|
||||
define ('DB_REPORT_NAME', '" . env('DB_DATABASE') . "' );
|
||||
define ('DB_REPORT_USER', '" . env('DB_USERNAME') . "' );
|
||||
define ('DB_REPORT_PASS', '" . env('DB_PASSWORD') . "' );");
|
||||
}
|
||||
$this->createDBFile($workspace);
|
||||
|
||||
//Set the user logged as the admin
|
||||
$_SESSION['USER_LOGGED'] = "00000000000000000000000000000001";
|
||||
|
||||
Reference in New Issue
Block a user