Skip to content

Commit

Permalink
added detailed opening hours to stores (#2660)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasLudvik authored Jul 25, 2023
2 parents 8480a7a + 58cef45 commit 22f916a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Unit/Product/Action/ProductActionViewFacadeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 22f916a

Please sign in to comment.