diff --git a/tests/Unit/Product/Action/ProductActionViewFacadeTest.php b/tests/Unit/Product/Action/ProductActionViewFacadeTest.php index f8ac394314..d7ea345825 100644 --- a/tests/Unit/Product/Action/ProductActionViewFacadeTest.php +++ b/tests/Unit/Product/Action/ProductActionViewFacadeTest.php @@ -4,6 +4,7 @@ namespace Tests\ReadModelBundle\Unit\Product\Action; +use DateTimeZone; use PHPUnit\Framework\TestCase; use Shopsys\FrameworkBundle\Component\Domain\Config\DomainConfig; use Shopsys\FrameworkBundle\Component\Domain\Domain; @@ -69,7 +70,8 @@ private function createProductMock(int $id): Product */ protected function createDomainMock(): Domain { - $domainConfig = new DomainConfig(Domain::FIRST_DOMAIN_ID, 'http://webserver:8080/', 'shopsys', 'en'); + $defaultTimeZone = new DateTimeZone('Europe/Prague'); + $domainConfig = new DomainConfig(Domain::FIRST_DOMAIN_ID, 'http://webserver:8080/', 'shopsys', 'en', $defaultTimeZone); $domain = $this->createMock(Domain::class); $domain->method('getCurrentDomainConfig')->willReturn($domainConfig);