Skip to content

Commit e5df77c

Browse files
committed
ACP2E-1214: [Magento Cloud] - Mass Delete Product Review doesnt work when logged in as limited user role
1 parent a4368e6 commit e5df77c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/Magento/Review/Test/Unit/Controller/Adminhtml/Product/MassDeleteTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ protected function setUp(): void
7474

7575
public function testExecute(): void
7676
{
77-
$this->requestMock->expects($this->atLeastOnce())
77+
$this->requestMock->expects(self::atLeastOnce())
7878
->method('getParam')
7979
->willReturnMap(
8080
[
@@ -84,19 +84,19 @@ public function testExecute(): void
8484
);
8585

8686
$collectionMock = $this->createMock(ReviewCollection::class);
87-
$this->collectionFactoryMock->expects($this->once())
87+
$this->collectionFactoryMock->expects(self::once())
8888
->method('create')
8989
->willReturn($collectionMock);
9090
$resource = $this->createMock(ReviewResourceModel::class);
9191
$collectionMock->method('getResource')
9292
->willReturn($resource);
9393
$resource->method('getIdFieldName')
9494
->willReturn('id');
95-
$collectionMock->expects($this->once())
95+
$collectionMock->expects(self::once())
9696
->method('addFieldToFilter')
9797
->with('main_table.id', [10, 20])
9898
->willReturnSelf();
99-
$collectionMock->expects($this->once())
99+
$collectionMock->expects(self::once())
100100
->method('addStoreData')
101101
->willReturnSelf();
102102

0 commit comments

Comments
 (0)