File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
app/code/Magento/Catalog/Test/Unit/Model/Indexer/Product/Price/Action Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 25
25
use PHPUnit \Framework \TestCase ;
26
26
use PHPUnit \Framework \MockObject \MockObject ;
27
27
28
+ /**
29
+ * Test coverage for the rows action
30
+ *
31
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects) to preserve compatibility with parent class
32
+ */
28
33
class RowsTest extends TestCase
29
34
{
30
35
/**
@@ -172,13 +177,16 @@ public function testBatchProcessing()
172
177
$ this ->dimensionCollectionFactory ->expects ($ this ->exactly (2 ))
173
178
->method ('create ' )
174
179
->willReturn ($ multiDimensionProvider );
175
- $ iterator = new \ArrayObject ([]);
180
+ $ iterator = new \ArrayIterator ([]);
176
181
$ multiDimensionProvider ->expects ($ this ->exactly (2 ))
177
182
->method ('getIterator ' )
178
183
->willReturn ($ iterator );
179
184
$ this ->catalogProductType ->expects ($ this ->any ())
180
185
->method ('getTypesByPriority ' )
181
186
->willReturn ([]);
187
+ $ adapter ->expects ($ this ->any ())
188
+ ->method ('getPrimaryKeyName ' )
189
+ ->willReturn (['COLUMNS_LIST ' =>['entity_id ' ]]);
182
190
$ this ->actionRows ->execute ($ ids );
183
191
}
184
192
}
You can’t perform that action at this time.
0 commit comments