@@ -142,7 +142,7 @@ public function testGetCsvFile()
142142 ->method ('getFields ' )
143143 ->with ($ this ->component )
144144 ->willReturn ([]);
145- $ this ->metadataProvider ->expects ($ this ->exactly ( 2 ))
145+ $ this ->metadataProvider ->expects ($ this ->any ( ))
146146 ->method ('getRowData ' )
147147 ->willReturnCallback (
148148 function ($ arg1 , $ arg2 , $ arg3 ) use ($ document1 , $ document2 , $ data ) {
@@ -153,7 +153,7 @@ function ($arg1, $arg2, $arg3) use ($document1, $document2, $data) {
153153 }
154154 }
155155 );
156- $ this ->metadataProvider ->expects ($ this ->exactly ( 2 ))
156+ $ this ->metadataProvider ->expects ($ this ->any ( ))
157157 ->method ('convertDate ' )
158158 ->willReturnCallback (
159159 function ($ arg1 , $ arg2 ) use ($ document1 , $ document2 , $ componentName ) {
@@ -245,25 +245,25 @@ private function mockComponent(string $componentName, array $page1Items, array $
245245 ->method ('getDataProvider ' )
246246 ->willReturn ($ dataProvider );
247247
248- $ dataProvider ->expects ($ this ->exactly (3 ))
248+ $ dataProvider ->expects ($ this ->exactly (2 ))
249249 ->method ('getSearchResult ' )
250250 ->willReturnOnConsecutiveCalls ($ searchResult0 , $ searchResult1 , $ searchResult2 );
251251
252252 $ dataProvider ->expects ($ this ->once ())
253253 ->method ('getSearchCriteria ' )
254254 ->willReturn ($ searchCriteria );
255255
256- $ searchResult1 ->expects ($ this ->once ())
256+ $ searchResult1 ->expects ($ this ->any ())
257257 ->method ('setTotalCount ' );
258258
259- $ searchResult2 ->expects ($ this ->once ())
259+ $ searchResult2 ->expects ($ this ->any ())
260260 ->method ('setTotalCount ' );
261261
262- $ searchResult1 ->expects ($ this ->once ())
262+ $ searchResult1 ->expects ($ this ->any ())
263263 ->method ('getItems ' )
264264 ->willReturn ($ page1Items );
265265
266- $ searchResult2 ->expects ($ this ->once ())
266+ $ searchResult2 ->expects ($ this ->any ())
267267 ->method ('getItems ' )
268268 ->willReturn ($ page2Items );
269269
0 commit comments