File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
dev/tests/integration/testsuite/Magento/Eav/Model/Entity/Attribute/Frontend Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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 ' ],
You can’t perform that action at this time.
0 commit comments