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
85
85
$ attribute = $ this ->attributeRepository ->get ('datetime_attribute ' );
86
86
$ product = $ this ->productRepository ->get ('simple-on-two-websites ' );
87
87
$ 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
+ );
89
93
$ secondWebsiteValue = $ this ->executeInStoreContext ->execute (
90
94
'fixture_second_store ' ,
91
95
[$ attribute ->getFrontend (), 'getValue ' ],
You can’t perform that action at this time.
0 commit comments