6 declare(strict_types=1);
10 use Magento\CatalogSearch\Model\Adapter\Mysql\Aggregation\DataProvider\SelectBuilderForAttribute\
11 ApplyStockConditionToSelect;
14 use PHPUnit\Framework\TestCase;
21 private $applyStockConditionToSelect;
50 [
'main_table' => $this->resource->getTableName(
'catalog_product_index_eav')],
51 [
'main_table.entity_id',
'main_table.value']
54 $this->applyStockConditionToSelect->execute(
$select);
55 self::assertEquals(3, count(
$select->query()->fetchAll()));
static getObjectManager()