Skip to content
Snippets Groups Projects
Commit 0f7361f8 authored by Andriy Nasinnyk's avatar Andriy Nasinnyk
Browse files

MAGETWO-35088: Page and Block Data and Repository Interfaces

 - fixed unit test
parent 5484115c
Branches
No related merge requests found
......@@ -153,7 +153,7 @@ class PagingTest extends \PHPUnit_Framework_TestCase
false,
true,
true,
['setLimit']
['setPageSize', 'setCurPage']
);
$this->renderContextMock->expects($this->any())->method('getStorage')->willReturn($storageMock);
......@@ -173,8 +173,12 @@ class PagingTest extends \PHPUnit_Framework_TestCase
);
$dataCollectionMock->expects($this->any())
->method('setLimit')
->with($paramsPage, $paramsSize)
->method('setPageSize')
->with($paramsSize)
->willReturnSelf();
$dataCollectionMock->expects($this->any())
->method('setCurPage')
->with($paramsPage)
->willReturnSelf();
$this->assertNull($this->view->prepare());
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment