Skip to content

Commit 5df3908

Browse files
committed
B2B-2256: "countries" and "country" GraphQl query has no cache identity
1 parent 814769a commit 5df3908

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Directory/CountriesCacheTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public function testCachePurgedWithStoreScopeCountryConfigChange()
197197
$this->assertArrayHasKey('countries', $defaultStoreResponseHit['body']);
198198
$defaultStoreResponseHitResult = $defaultStoreResponseHit['body']['countries'];
199199
$this->assertCount(1, $defaultStoreResponseHitResult);
200-
$this->assertArrayHasKey('US', $defaultStoreResponseHitResult[0]['id']);
200+
$this->assertEquals('US', $defaultStoreResponseHitResult[0]['id']);
201201

202202
// Query test store countries after test store country config is changed
203203
// Verify we obtain a cache MISS at the 2nd time

dev/tests/api-functional/testsuite/Magento/GraphQl/Directory/CountryCacheTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ public function testCachePurgedWithStoreScopeCountryConfigChange()
268268
);
269269
$this->assertArrayHasKey('country', $defaultStoreResponseHit['body']);
270270
$defaultStoreResponseHitResult = $defaultStoreResponseHit['body']['country'];
271-
$this->assertArrayHasKey('US', $defaultStoreResponseHitResult['id']);
271+
$this->assertEquals('US', $defaultStoreResponseHitResult['id']);
272272

273273
// Query test store DE country after test store country config is changed
274274
// Verify we obtain a cache MISS at the 2nd time

0 commit comments

Comments
 (0)