Skip to content

Commit c5d69dc

Browse files
committed
MAGETWO-66402: Backward Incompatible Change
- fix unit test return map
1 parent 9dca2d8 commit c5d69dc

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

app/code/Magento/Ui/Test/Unit/Component/MassAction/FilterTest.php

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -234,18 +234,15 @@ public function testGetCollectionWithCollection($selectedIds, $excludedIds, $fil
234234

235235
$this->setUpApplySelection($selectedIds, $excludedIds, $filterExpected, $conditionExpected);
236236

237-
$this->requestMock->expects($this->at(4))
238-
->method('getParam')
239-
->with('namespace')
240-
->willReturn('');
241-
$this->requestMock->expects($this->at(2))
242-
->method('getParam')
243-
->with(Filter::SELECTED_PARAM)
244-
->willReturn($selectedIds);
245-
$this->requestMock->expects($this->at(3))
237+
238+
$this->requestMock->expects($this->any())
246239
->method('getParam')
247-
->with(Filter::EXCLUDED_PARAM)
248-
->willReturn($excludedIds);
240+
->willReturnMap([
241+
['namespace', null, ''],
242+
[Filter::SELECTED_PARAM, null, $selectedIds],
243+
[Filter::EXCLUDED_PARAM, null, $excludedIds],
244+
]);
245+
249246
$this->assertEquals($this->abstractDbMock, $this->filter->getCollection($this->abstractDbMock));
250247
}
251248

0 commit comments

Comments
 (0)