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 PHPUnit_Framework_TestCase;
|
||||
use Icinga\Application\Icinga;
|
||||
use Icinga\Util\DateTimeFactory;
|
||||
use Icinga\Data\ConfigObject;
|
||||
use Icinga\Data\ResourceFactory;
|
||||
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()
|
||||
{
|
||||
date_default_timezone_set('UTC');
|
||||
DateTimeFactory::setConfig(array('timezone' => 'UTC'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue