Skip to content

Commit 1601d7e

Browse files
committed
ACP2E-3761: Investigate if AC-6301 can be automated
1 parent fa8dd0c commit 1601d7e

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?php
2+
/**
3+
* Copyright 2025 Adobe
4+
* All Rights Reserved.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\CatalogInventory\Model\Indexer;
9+
10+
use Magento\TestFramework\Helper\Bootstrap;
11+
use Magento\Catalog\Model\Indexer\Product\Price\Processor as PriceIndexProcessor;
12+
use Magento\CatalogSearch\Model\Indexer\Fulltext\Processor as FulltextIndexProcessor;
13+
use PHPUnit\Framework\TestCase;
14+
15+
class SubscriptionsTest extends TestCase
16+
{
17+
/**
18+
* @var PriceIndexProcessor
19+
*/
20+
private PriceIndexProcessor $priceIndexProcessor;
21+
22+
23+
/**
24+
* @var FulltextIndexProcessor
25+
*/
26+
private FulltextIndexProcessor $fulltextIndexProcessor;
27+
28+
protected function setUp(): void
29+
{
30+
$this->priceIndexProcessor = Bootstrap::getObjectManager()->create(PriceIndexProcessor::class);
31+
$this->fulltextIndexProcessor = Bootstrap::getObjectManager()->create(FulltextIndexProcessor::class);
32+
}
33+
34+
public function testSubscriptions(): void
35+
{
36+
$subscriptions = array_keys($this->priceIndexProcessor->getIndexer()->getView()->getSubscriptions());
37+
$this->assertNotContains('cataloginventory_stock_item', $subscriptions);
38+
$subscriptions = array_keys($this->fulltextIndexProcessor->getIndexer()->getView()->getSubscriptions());
39+
$this->assertNotContains('cataloginventory_stock_item', $subscriptions);
40+
}
41+
}
42+

0 commit comments

Comments
 (0)