File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
dev/tests/integration/testsuite/Magento/CatalogInventory/Model/Indexer Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments