We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35e89bc commit d200aa8Copy full SHA for d200aa8
Tests/Integration/Controller/AbstractControllerTest.php
@@ -67,6 +67,10 @@ abstract class AbstractControllerTest extends WebTestCase
67
68
protected function setUp()
69
{
70
+ // This makes sure that all DateTime instances use the same time zone, thus making the dates in the
71
+ // JSON provided by the REST API easier to test.
72
+ date_default_timezone_set('UTC');
73
+
74
$this->initializeDatabaseTester();
75
$this->bootstrap = Bootstrap::getInstance()->setEnvironment(Environment::TESTING)->configure();
76
$this->entityManager = $this->bootstrap->getEntityManager();
0 commit comments