File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
app/code/Magento/Review/Test/Unit/Controller/Adminhtml/Product Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 23
23
use Magento \Backend \Model \View \Result \Redirect ;
24
24
use Magento \Review \Model \ResourceModel \Review as ReviewResourceModel ;
25
25
26
+ /**
27
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
28
+ */
26
29
class MassUpdateStatusTest extends TestCase
27
30
{
28
31
/**
@@ -131,7 +134,7 @@ public function testExecute(): void
131
134
$ modelMock ->method ('_getResource ' )
132
135
->willReturn ($ this ->createMock (ReviewResourceModel::class));
133
136
$ this ->collectionMock ->expects ($ this ->once ())->method ('getIterator ' )
134
- ->willReturn (new \ArrayObject ([$ modelMock ]));
137
+ ->willReturn (new \ArrayIterator ([$ modelMock ]));
135
138
$ this ->messageManagerMock ->expects ($ this ->once ())
136
139
->method ('addSuccessMessage ' )
137
140
->with (__ ('A total of %1 record(s) have been updated. ' , 2 ));
You can’t perform that action at this time.
0 commit comments