6 declare(strict_types=1);
14 use PHPUnit\Framework\TestCase;
26 private $applyStockConditionToSelect;
31 private $defaultSourceProvider;
36 private $sourceItemRepository;
41 private $searchCriteriaBuilder;
46 private $getSourceItemsBySku;
68 public function testExecute()
75 $select->from([
'eav_index' =>
$resource->getTableName(
'catalog_product_index_eav')],
'entity_id');
76 $this->applyStockConditionToSelect->execute(
'eav_index',
'eav_index_stock',
$select);
84 self::assertEquals(5, count(
$result));
96 self::assertEmpty($this->getSourceItemsBySku->execute(
'SKU-5'));
static getObjectManager()