mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
✅ Fix CI
This commit is contained in:
@@ -14,7 +14,6 @@ use ReflectionMethod;
|
|||||||
use SetupUtils;
|
use SetupUtils;
|
||||||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||||||
use Symfony\Component\HttpKernel\KernelInterface;
|
use Symfony\Component\HttpKernel\KernelInterface;
|
||||||
|
|
||||||
use const DEBUG_BACKTRACE_IGNORE_ARGS;
|
use const DEBUG_BACKTRACE_IGNORE_ARGS;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -150,6 +149,17 @@ abstract class ItopTestCase extends KernelTestCase
|
|||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
// Check globals
|
||||||
|
global $fItopStarted;
|
||||||
|
if (is_null($fItopStarted)) {
|
||||||
|
$fItopStarted = microtime(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
global $iItopInitialMemory;
|
||||||
|
if (is_null($iItopInitialMemory)) {
|
||||||
|
$iItopInitialMemory = memory_get_usage(true);
|
||||||
|
}
|
||||||
|
|
||||||
// Hack - Required the first time the Portal kernel is booted on a newly installed iTop
|
// Hack - Required the first time the Portal kernel is booted on a newly installed iTop
|
||||||
$_ENV['COMBODO_PORTAL_BASE_ABSOLUTE_PATH'] = __DIR__.'/../../../../../env-production/itop-portal-base/portal/public/';
|
$_ENV['COMBODO_PORTAL_BASE_ABSOLUTE_PATH'] = __DIR__.'/../../../../../env-production/itop-portal-base/portal/public/';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user