Skip to content

Commit 1436ea0

Browse files
committed
MCP-89: Move product batch size variable to environment
1 parent 0bf51ec commit 1436ea0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

app/code/Magento/Catalog/Test/Unit/Model/ResourceModel/Product/Indexer/Price/BatchSizeCalculatorTest.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use Magento\Framework\Indexer\BatchSizeManagementInterface;
1313
use PHPUnit\Framework\MockObject\MockObject;
1414
use PHPUnit\Framework\TestCase;
15+
use Magento\Framework\App\DeploymentConfig;
1516

1617
class 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

0 commit comments

Comments
 (0)