File tree Expand file tree Collapse file tree 2 files changed +32
-3
lines changed
app/code/Magento/CatalogSearch/Model/Indexer
dev/tests/integration/testsuite/Magento/CatalogSearch/Model/Indexer Expand file tree Collapse file tree 2 files changed +32
-3
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- * Copyright © Magento, Inc. All rights reserved.
4
- * See COPYING.txt for license details .
3
+ * Copyright 2011 Adobe
4
+ * All Rights Reserved .
5
5
*/
6
6
7
7
namespace Magento \CatalogSearch \Model \Indexer ;
@@ -123,7 +123,7 @@ public function __construct(
123
123
IndexSwitcherInterface $ indexSwitcher ,
124
124
StateFactory $ indexScopeStateFactory ,
125
125
DimensionProviderInterface $ dimensionProvider ,
126
- array $ data ,
126
+ array $ data = [] ,
127
127
ProcessManager $ processManager = null ,
128
128
?int $ batchSize = null ,
129
129
?DeploymentConfig $ deploymentConfig = null
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright 2024 Adobe
4
+ * All Rights Reserved.
5
+ */
6
+ declare (strict_types=1 );
7
+
8
+ namespace Magento \CatalogSearch \Model \Indexer ;
9
+
10
+ use Magento \TestFramework \Helper \Bootstrap ;
11
+ use PHPUnit \Framework \TestCase ;
12
+
13
+ class FulltextFactoryTest extends TestCase
14
+ {
15
+ /**
16
+ * @var FulltextFactory|null
17
+ */
18
+ private ?FulltextFactory $ fulltextFactory ;
19
+
20
+ protected function setUp (): void
21
+ {
22
+ $ this ->fulltextFactory = Bootstrap::getObjectManager ()->get (FulltextFactory::class);
23
+ }
24
+
25
+ public function testCreate (): void
26
+ {
27
+ self ::assertInstanceOf (Fulltext::class, $ this ->fulltextFactory ->create ());
28
+ }
29
+ }
You can’t perform that action at this time.
0 commit comments