File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
app/code/Magento/Catalog/Test/Unit/Model/ResourceModel/Product/Indexer/Price Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 12
12
use Magento \Framework \Indexer \BatchSizeManagementInterface ;
13
13
use PHPUnit \Framework \MockObject \MockObject ;
14
14
use PHPUnit \Framework \TestCase ;
15
+ use Magento \Framework \App \DeploymentConfig ;
15
16
16
17
class BatchSizeCalculatorTest extends TestCase
17
18
{
@@ -30,14 +31,20 @@ class BatchSizeCalculatorTest extends TestCase
30
31
*/
31
32
private $ batchRowsCount ;
32
33
34
+ /**
35
+ * @var DeploymentConfig|MockObject
36
+ */
37
+ private $ deploymentConfigMock ;
38
+
33
39
protected function setUp (): void
34
40
{
35
41
$ this ->estimatorMock = $ this ->getMockForAbstractClass (BatchSizeManagementInterface::class);
36
42
$ this ->batchRowsCount = 200 ;
37
43
$ this ->model = new BatchSizeCalculator (
38
44
['default ' => $ this ->batchRowsCount ],
39
45
['default ' => $ this ->estimatorMock ],
40
- []
46
+ [],
47
+ $ this ->createMock (DeploymentConfig::class)
41
48
);
42
49
}
43
50
You can’t perform that action at this time.
0 commit comments