Skip to content

Commit 73f1814

Browse files
committed
B2B-2677: [MediaGallery] Implement data caching for GraphQL results on resolver level
- Assert second store's cache record entry's label is null
1 parent f554af8 commit 73f1814

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/ResolverCache/MediaGalleryTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,9 @@ public function testResolverCacheRecordIsCreatedForEachStoreView()
234234
)
235235
);
236236

237+
// The entry's label in second store view is null by default; assert the cache record has the same value
238+
$this->assertNull(json_decode($cacheEntryInSecondStoreView, true)[0]['label']);
239+
237240
// Assert cache keys are different
238241
$this->assertNotEquals(
239242
$cacheKeyInDefaultStoreView,

0 commit comments

Comments
 (0)