@@ -17,7 +17,10 @@ class ProductSearchAggregationsTest extends GraphQlAbstract
17
17
*/
18
18
public function testAggregationBooleanAttribute ()
19
19
{
20
- $ this ->reindex ();
20
+ $ this ->markTestSkipped (
21
+ 'MC-22184: Elasticsearch returns incorrect aggregation options for booleans '
22
+ . 'MC-36768: Custom attribute not appears in elasticsearch '
23
+ );
21
24
22
25
$ skus = '"search_product_1", "search_product_2", "search_product_3", "search_product_4" ,"search_product_5" ' ;
23
26
$ query = <<<QUERY
@@ -61,21 +64,9 @@ function ($a) {
61
64
$ this ->assertEquals ('boolean_attribute ' , $ booleanAggregation ['attribute_code ' ]);
62
65
$ this ->assertContainsEquals (['label ' => '1 ' , 'value ' => '1 ' , 'count ' => '3 ' ], $ booleanAggregation ['options ' ]);
63
66
64
- $ this ->markTestIncomplete ('MC-22184: Elasticsearch returns incorrect aggregation options for booleans ' );
67
+ $ this ->markTestSkipped ('MC-22184: Elasticsearch returns incorrect aggregation options for booleans ' );
65
68
$ this ->assertEquals (2 , $ booleanAggregation ['count ' ]);
66
69
$ this ->assertCount (2 , $ booleanAggregation ['options ' ]);
67
70
$ this ->assertContainsEquals (['label ' => '0 ' , 'value ' => '0 ' , 'count ' => '2 ' ], $ booleanAggregation ['options ' ]);
68
71
}
69
-
70
- /**
71
- * Reindex
72
- *
73
- * @throws \Magento\Framework\Exception\LocalizedException
74
- */
75
- private function reindex ()
76
- {
77
- $ appDir = dirname (Bootstrap::getInstance ()->getAppTempDir ());
78
- // phpcs:ignore Magento2.Security.InsecureFunction
79
- exec ("php -f {$ appDir }/bin/magento indexer:reindex " );
80
- }
81
72
}
0 commit comments