mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-06 09:34:13 +01:00
N°3234 - Cron rework
* some timezone refactors occurred
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
namespace Combodo\iTop\Test\UnitTest\Core;
|
||||
|
||||
use Combodo\iTop\Test\UnitTest\ItopTestCase;
|
||||
use Config;
|
||||
use DateTime;
|
||||
|
||||
|
||||
@@ -38,9 +37,7 @@ class WeeklyScheduledProcessTest extends ItopTestCase
|
||||
{
|
||||
$oWeeklyImpl = new \WeeklyScheduledProcessMockConfig($bEnabledValue, $sTimeValue);
|
||||
|
||||
$sItopTimeZone = $oWeeklyImpl->getOConfig()->Get('timezone');
|
||||
$timezone = new \DateTimeZone($sItopTimeZone);
|
||||
$oExpectedDateTime = new DateTime($sExpectedTime, $timezone);
|
||||
$oExpectedDateTime = new DateTime($sExpectedTime);
|
||||
|
||||
$this->assertEquals($oExpectedDateTime, $oWeeklyImpl->GetNextOccurrence($sCurrentTime));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user