Skip to content

Commit 6ad571e

Browse files
committed
MC-40865: Create automated test for: ""Date and Time" attribute correctly rendered regarding timezone settings"
1 parent 6327c2c commit 6ad571e

File tree

1 file changed

+5
-1
lines changed
  • dev/tests/integration/testsuite/Magento/Eav/Model/Entity/Attribute/Frontend

1 file changed

+5
-1
lines changed

dev/tests/integration/testsuite/Magento/Eav/Model/Entity/Attribute/Frontend/DatetimeTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@ public function testFrontendValueOnDifferentWebsites(): void
8585
$attribute = $this->attributeRepository->get('datetime_attribute');
8686
$product = $this->productRepository->get('simple-on-two-websites');
8787
$product->setDatetimeAttribute($this->dateTime->date('Y-m-d H:i:s'));
88-
$firstWebsiteValue = $attribute->getFrontend()->getValue($product);
88+
$firstWebsiteValue = $this->executeInStoreContext->execute(
89+
'default',
90+
[$attribute->getFrontend(), 'getValue'],
91+
$product
92+
);
8993
$secondWebsiteValue = $this->executeInStoreContext->execute(
9094
'fixture_second_store',
9195
[$attribute->getFrontend(), 'getValue'],

0 commit comments

Comments
 (0)