Skip to content

Commit ed0c174

Browse files
committed
MC-36671: Extend catalog GraphQl tests coverage
1 parent 50fd0b6 commit ed0c174

File tree

2 files changed

+87
-113
lines changed

2 files changed

+87
-113
lines changed

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

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ class ProductSearchAggregationsTest extends GraphQlAbstract
1717
*/
1818
public function testAggregationBooleanAttribute()
1919
{
20-
$this->reindex();
21-
2220
$skus= '"search_product_1", "search_product_2", "search_product_3", "search_product_4" ,"search_product_5"';
2321
$query = <<<QUERY
2422
{
@@ -61,21 +59,9 @@ function ($a) {
6159
$this->assertEquals('boolean_attribute', $booleanAggregation['attribute_code']);
6260
$this->assertContainsEquals(['label' => '1', 'value'=> '1', 'count' => '3'], $booleanAggregation['options']);
6361

64-
$this->markTestIncomplete('MC-22184: Elasticsearch returns incorrect aggregation options for booleans');
62+
$this->markTestSkipped('MC-22184: Elasticsearch returns incorrect aggregation options for booleans');
6563
$this->assertEquals(2, $booleanAggregation['count']);
6664
$this->assertCount(2, $booleanAggregation['options']);
6765
$this->assertContainsEquals(['label' => '0', 'value'=> '0', 'count' => '2'], $booleanAggregation['options']);
6866
}
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-
}
8167
}

0 commit comments

Comments
 (0)