Skip to content

Commit 54c3dcb

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

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
@@ -214,6 +214,9 @@ public function testResolverCacheRecordIsCreatedForEachStoreView()
214214
$cacheKeyInDefaultStoreView = $this->getCacheKeyForMediaGalleryResolver($product);
215215
$this->assertMediaGalleryResolverCacheRecordExists($product);
216216

217+
$cacheEntryInDefaultStoreView = $this->graphQlResolverCache->load($cacheKeyInDefaultStoreView);
218+
$this->assertNotNull(json_decode($cacheEntryInDefaultStoreView, true)[0]['label']);
219+
217220
// Switch to second store view
218221
$this->storeManager->setCurrentStore($store2->getCode());
219222

0 commit comments

Comments
 (0)