File tree Expand file tree Collapse file tree 1 file changed +0
-38
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/RelatedProduct Expand file tree Collapse file tree 1 file changed +0
-38
lines changed Original file line number Diff line number Diff line change @@ -50,44 +50,6 @@ public function testQueryRelatedProducts()
50
50
self ::assertRelatedProducts ($ relatedProducts );
51
51
}
52
52
53
- /**
54
- * @magentoApiDataFixture Magento/Catalog/_files/products_related_disabled.php
55
- * @magentoConfigFixture default_store cataloginventory/options/show_out_of_stock 1
56
- * @magentoConfigFixture default_store catalog/magento_catalogpermissions/enabled 1
57
- * @magentoConfigFixture default_store catalog/magento_catalogpermissions/grant_catalog_category_view 1
58
- * @magentoConfigFixture default_store catalog/magento_catalogpermissions/grant_catalog_product_price 1
59
- * @magentoConfigFixture default_store catalog/magento_catalogpermissions/grant_checkout_items 1
60
- */
61
- public function testQueryDisableRelatedProductWithShowOutOfStock ()
62
- {
63
- $ productSku = 'simple_with_cross ' ;
64
-
65
- $ query = <<<QUERY
66
- {
67
- products(filter: {sku: {eq: " {$ productSku }"}})
68
- {
69
- items {
70
- related_products
71
- {
72
- sku
73
- name
74
- url_key
75
- }
76
- }
77
- }
78
- }
79
- QUERY ;
80
- $ response = $ this ->graphQlQuery ($ query );
81
-
82
- self ::assertArrayHasKey ('products ' , $ response );
83
- self ::assertArrayHasKey ('items ' , $ response ['products ' ]);
84
- self ::assertCount (1 , $ response ['products ' ]['items ' ]);
85
- self ::assertArrayHasKey (0 , $ response ['products ' ]['items ' ]);
86
- self ::assertArrayHasKey ('related_products ' , $ response ['products ' ]['items ' ][0 ]);
87
- $ relatedProducts = $ response ['products ' ]['items ' ][0 ]['related_products ' ];
88
- self ::assertCount (0 , $ relatedProducts );
89
- }
90
-
91
53
/**
92
54
* @magentoApiDataFixture Magento/Catalog/_files/products_related_disabled.php
93
55
*/
You can’t perform that action at this time.
0 commit comments