Skip to content

Commit f84c278

Browse files
author
Anna Bukatar
committed
ACP2E-2092: Minicart is not updating in stores with subdomains, even though the session is shared.
1 parent b2ad99e commit f84c278

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
use Magento\Backend\Model\View\Result\Redirect;
2424
use Magento\Review\Model\ResourceModel\Review as ReviewResourceModel;
2525

26+
/**
27+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
28+
*/
2629
class MassUpdateStatusTest extends TestCase
2730
{
2831
/**
@@ -131,7 +134,7 @@ public function testExecute(): void
131134
$modelMock->method('_getResource')
132135
->willReturn($this->createMock(ReviewResourceModel::class));
133136
$this->collectionMock->expects($this->once())->method('getIterator')
134-
->willReturn(new \ArrayObject([$modelMock]));
137+
->willReturn(new \ArrayIterator([$modelMock]));
135138
$this->messageManagerMock->expects($this->once())
136139
->method('addSuccessMessage')
137140
->with(__('A total of %1 record(s) have been updated.', 2));

0 commit comments

Comments
 (0)