Skip to content

Commit 209c7f5

Browse files
committed
B2B-2677: [MediaGallery]Implement data caching for GraphQL results on resolver level
- Fix expectations
1 parent 9230187 commit 209c7f5

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

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

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -372,19 +372,11 @@ public function testThatThereAreNoOrphanedCacheIdsInTagFileAfterInvalidation()
372372
$this->assertNotContains(
373373
$cacheIdPrefix . $cacheKey,
374374
$cacheBackend->getIdsMatchingTags([
375-
$cacheIdPrefix . 'GQL_MEDIA_GALLERY'
376-
]),
377-
'Cache id is still present in GQL_MEDIA_GALLERY tag file after invalidation'
378-
);
379-
380-
$this->assertNotContains(
381-
$cacheIdPrefix . $cacheKey,
382-
$cacheBackend->getIdsMatchingTags([
383-
$cacheIdPrefix . 'GQL_MEDIA_GALLERY_' . $product->getId(),
375+
$cacheIdPrefix . 'GQL_MEDIA_GALLERY_' . strtoupper($product->getSku()),
384376
]),
385377
sprintf(
386378
'Cache id is still present in GQL_MEDIA_GALLERY_%s tag file after invalidation',
387-
$product->getId()
379+
strtoupper($product->getSku())
388380
)
389381
);
390382
}

0 commit comments

Comments
 (0)