Don't setup the DateTimeFactory in our tests

DateTimeFactory will be removed soon.

refs #6778
This commit is contained in:
Eric Lippmann 2015-05-19 11:25:06 +02:00
parent ba258524a8
commit 1d6ef5ec3a

View File

@ -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'));
} }
/** /**