Skip to content

Commit ee3a7f5

Browse files
AnujNehraAnujNehra
AnujNehra
authored and
AnujNehra
committed
ACP2E-2128: Alt Text returning as Null instead of product name when left empty.
1 parent 88792c0 commit ee3a7f5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)