Skip to content

Commit 0f7361f

Browse files
MAGETWO-35088: Page and Block Data and Repository Interfaces
- fixed unit test
1 parent 5484115 commit 0f7361f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

app/code/Magento/Ui/Test/Unit/Component/PagingTest.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function testPrepare()
153153
false,
154154
true,
155155
true,
156-
['setLimit']
156+
['setPageSize', 'setCurPage']
157157
);
158158

159159
$this->renderContextMock->expects($this->any())->method('getStorage')->willReturn($storageMock);
@@ -173,8 +173,12 @@ public function testPrepare()
173173
);
174174

175175
$dataCollectionMock->expects($this->any())
176-
->method('setLimit')
177-
->with($paramsPage, $paramsSize)
176+
->method('setPageSize')
177+
->with($paramsSize)
178+
->willReturnSelf();
179+
$dataCollectionMock->expects($this->any())
180+
->method('setCurPage')
181+
->with($paramsPage)
178182
->willReturnSelf();
179183

180184
$this->assertNull($this->view->prepare());

0 commit comments

Comments
 (0)