File tree Expand file tree Collapse file tree 1 file changed +0
-27
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog Expand file tree Collapse file tree 1 file changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -45,33 +45,6 @@ public function testProductSmallImageUrlWithExistingImage()
45
45
self ::assertTrue ($ this ->checkImageExists ($ response ['products ' ]['items ' ][0 ]['small_image ' ]['url ' ]));
46
46
}
47
47
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
-
75
48
/**
76
49
* @param string $url
77
50
* @return bool
You can’t perform that action at this time.
0 commit comments