Skip to content

Commit 9bd848a

Browse files
fix unit
1 parent 1c6672e commit 9bd848a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/Review/Test/Unit/Ui/DataProvider/Product/ReviewDataProviderTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ public function testGetData()
8181
$this->collectionMock->expects($this->once())
8282
->method('addStoreData')
8383
->willReturnSelf();
84-
$this->requestMock->expects($this->once())
84+
$this->requestMock->expects($this->exactly(2))
8585
->method('getParam')
86-
->with('current_product_id', 0)
87-
->willReturn(1);
86+
->withConsecutive(['current_product_id', 0], ['sorting'])
87+
->willReturnOnConsecutiveCalls(1, null);
8888

8989
$this->assertSame($expected, $this->model->getData());
9090
}

0 commit comments

Comments
 (0)