mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 05:44:36 +02:00
Don't setup the DateTimeFactory in our tests
DateTimeFactory will be removed soon. refs #6778
This commit is contained in:
parent
ba258524a8
commit
1d6ef5ec3a
@ -25,7 +25,6 @@ namespace Icinga\Test {
|
|||||||
use Mockery;
|
use Mockery;
|
||||||
use PHPUnit_Framework_TestCase;
|
use PHPUnit_Framework_TestCase;
|
||||||
use Icinga\Application\Icinga;
|
use Icinga\Application\Icinga;
|
||||||
use Icinga\Util\DateTimeFactory;
|
|
||||||
use Icinga\Data\ConfigObject;
|
use Icinga\Data\ConfigObject;
|
||||||
use Icinga\Data\ResourceFactory;
|
use Icinga\Data\ResourceFactory;
|
||||||
use Icinga\Data\Db\DbConnection;
|
use Icinga\Data\Db\DbConnection;
|
||||||
@ -104,12 +103,11 @@ namespace Icinga\Test {
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setup the default timezone and pass it to DateTimeFactory::setConfig
|
* Setup the default timezone
|
||||||
*/
|
*/
|
||||||
public static function setupTimezone()
|
public static function setupTimezone()
|
||||||
{
|
{
|
||||||
date_default_timezone_set('UTC');
|
date_default_timezone_set('UTC');
|
||||||
DateTimeFactory::setConfig(array('timezone' => 'UTC'));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user