File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/ResolverCache Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -237,8 +237,10 @@ public function testResolverCacheRecordIsCreatedForEachStoreView()
237237 )
238238 );
239239
240- // The entry's label in second store view is null by default; assert the cache record has the same value
241- $ this ->assertNull (json_decode ($ cacheEntryInSecondStoreView , true )[0 ]['label ' ]);
240+ // The entry's label in second store view is not null by default and has product name;
241+ // assert the cache record has the same value
242+ $ this ->assertNotNull (json_decode ($ cacheEntryInSecondStoreView , true )[0 ]['label ' ]);
243+ $ this ->assertEquals ($ product ->getName (), json_decode ($ cacheEntryInSecondStoreView , true )[0 ]['label ' ]);
242244
243245 // Assert cache keys are different
244246 $ this ->assertNotEquals (
You can’t perform that action at this time.
0 commit comments