Skip to content

Commit c53bb4f

Browse files
committed
Removed placeholder test
1 parent a027ae7 commit c53bb4f

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

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

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -45,33 +45,6 @@ public function testProductSmallImageUrlWithExistingImage()
4545
self::assertTrue($this->checkImageExists($response['products']['items'][0]['small_image']['url']));
4646
}
4747

48-
/**
49-
* small_image_url should contain a placeholder when there's no small image assigned
50-
* to the product
51-
*
52-
* @magentoApiDataFixture Magento/Catalog/_files/product_simple.php
53-
*/
54-
public function testProductSmallImageUrlWithNoImage()
55-
{
56-
$productSku = 'simple';
57-
$query = <<<QUERY
58-
{
59-
products(filter: {sku: {eq: "{$productSku}"}}) {
60-
items {
61-
small_image {
62-
url
63-
}
64-
}
65-
}
66-
}
67-
QUERY;
68-
$response = $this->graphQlQuery($query);
69-
70-
self::assertArrayHasKey('small_image', $response['products']['items'][0]);
71-
self::assertContains('placeholder/small_image.jpg', $response['products']['items'][0]['small_image']['url']);
72-
self::assertTrue($this->checkImageExists($response['products']['items'][0]['small_image']['url']));
73-
}
74-
7548
/**
7649
* @param string $url
7750
* @return bool

0 commit comments

Comments
 (0)