Skip to content

Commit 4db13c8

Browse files
authored
ENGCOM-5491: graphQl-738: un-skipped and fixed the media gallery test on the product #789
2 parents b1b9478 + aac21d6 commit 4db13c8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ public function testMediaGalleryTypesAreCorrect()
8787
*/
8888
public function testProductMediaGalleryEntries()
8989
{
90-
$this->markTestSkipped('https://github.com/magento/graphql-ce/issues/738');
9190
$productSku = 'simple';
9291
$query = <<<QUERY
9392
{
@@ -107,7 +106,10 @@ public function testProductMediaGalleryEntries()
107106
$response = $this->graphQlQuery($query);
108107

109108
self::assertArrayHasKey('file', $response['products']['items'][0]['media_gallery_entries'][0]);
110-
self::assertContains('magento_image.jpg', $response['products']['items'][0]['media_gallery_entries'][0]['url']);
109+
self::assertContains(
110+
'magento_image.jpg',
111+
$response['products']['items'][0]['media_gallery_entries'][0]['file']
112+
);
111113
}
112114

113115
/**

0 commit comments

Comments
 (0)