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 1212use Magento \Framework \Indexer \BatchSizeManagementInterface ;
1313use PHPUnit \Framework \MockObject \MockObject ;
1414use PHPUnit \Framework \TestCase ;
15+ use Magento \Framework \App \DeploymentConfig ;
1516
1617class BatchSizeCalculatorTest extends TestCase
1718{
@@ -30,14 +31,20 @@ class BatchSizeCalculatorTest extends TestCase
3031 */
3132 private $ batchRowsCount ;
3233
34+ /**
35+ * @var DeploymentConfig|MockObject
36+ */
37+ private $ deploymentConfigMock ;
38+
3339 protected function setUp (): void
3440 {
3541 $ this ->estimatorMock = $ this ->getMockForAbstractClass (BatchSizeManagementInterface::class);
3642 $ this ->batchRowsCount = 200 ;
3743 $ this ->model = new BatchSizeCalculator (
3844 ['default ' => $ this ->batchRowsCount ],
3945 ['default ' => $ this ->estimatorMock ],
40- []
46+ [],
47+ $ this ->createMock (DeploymentConfig::class)
4148 );
4249 }
4350
You can’t perform that action at this time.
0 commit comments