Skip to content

Commit 839c27d

Browse files
committed
Update test to expect last version id.
Otherwise we would want to update to the latest version id returned.
1 parent a1f14a1 commit 839c27d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/internal/Magento/Framework/Mview/Test/Unit/ViewTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ public function testUpdate()
263263
$currentVersionId = 3;
264264
$lastVersionId = 1;
265265
$listId = [2, 3];
266-
$defaultBatchSize = 1000;
267266

268267
$this->stateMock->expects($this->any())
269268
->method('getViewId')
@@ -297,7 +296,7 @@ public function testUpdate()
297296
'getList'
298297
)->with(
299298
$lastVersionId,
300-
$lastVersionId + $defaultBatchSize
299+
$currentVersionId
301300
)->will(
302301
$this->returnValue($listId)
303302
);
@@ -327,7 +326,6 @@ public function testUpdateWithException()
327326
$currentVersionId = 3;
328327
$lastVersionId = 1;
329328
$listId = [2, 3];
330-
$defaultBatchSize = 1000;
331329

332330
$this->stateMock->expects($this->any())
333331
->method('getViewId')
@@ -360,7 +358,7 @@ public function testUpdateWithException()
360358
'getList'
361359
)->with(
362360
$lastVersionId,
363-
$lastVersionId + $defaultBatchSize
361+
$currentVersionId
364362
)->will(
365363
$this->returnValue($listId)
366364
);

0 commit comments

Comments
 (0)