We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c6672e commit 9bd848aCopy full SHA for 9bd848a
app/code/Magento/Review/Test/Unit/Ui/DataProvider/Product/ReviewDataProviderTest.php
@@ -81,10 +81,10 @@ public function testGetData()
81
$this->collectionMock->expects($this->once())
82
->method('addStoreData')
83
->willReturnSelf();
84
- $this->requestMock->expects($this->once())
+ $this->requestMock->expects($this->exactly(2))
85
->method('getParam')
86
- ->with('current_product_id', 0)
87
- ->willReturn(1);
+ ->withConsecutive(['current_product_id', 0], ['sorting'])
+ ->willReturnOnConsecutiveCalls(1, null);
88
89
$this->assertSame($expected, $this->model->getData());
90
}
0 commit comments