14 public function testProcess()
19 $searchCriteriaMock = $this->getMockBuilder(SearchCriteriaInterface::class)
21 $searchCriteriaMock->expects($this->once())
22 ->method(
'getCurrentPage')
24 $searchCriteriaMock->expects($this->once())
25 ->method(
'getPageSize')
29 $collectionMock = $this->getMockBuilder(AbstractDb::class)
30 ->disableOriginalConstructor()
32 $collectionMock->expects($this->once())
33 ->method(
'setCurPage')
36 $collectionMock->expects($this->once())
37 ->method(
'setPageSize')
41 $model->process($searchCriteriaMock, $collectionMock);