Skip to content

Commit 89f33cd

Browse files
committed
MAGETWO-63945: Add extension point to sales grid indexer
- Fix static
1 parent 10bd198 commit 89f33cd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/code/Magento/Sales/Model/ResourceModel/Provider/NotSyncedDataProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function getIds($mainTableName, $gridTableName)
4040
{
4141
$result = [];
4242
foreach ($this->providers as $provider) {
43-
$result = array_merge($result, $provider->get($mainTableName, $gridTableName));
43+
$result = array_merge($result, $provider->getIds($mainTableName, $gridTableName));
4444
}
4545

4646
return array_unique($result);

app/code/Magento/Sales/Test/Unit/Model/ResourceModel/Provider/NotSyncedDataProviderTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
class NotSyncedDataProviderTest extends \PHPUnit_Framework_TestCase
1818
{
19-
public function testGetEmpty()
19+
public function testGetIdsEmpty()
2020
{
2121
/** @var TMapFactory|MockObject $tMapFactory */
2222
$tMapFactory = $this->getMockBuilder(TMapFactory::class)
@@ -47,7 +47,7 @@ public function testGetEmpty()
4747
/**
4848
* @covers \Magento\Sales\Model\ResourceModel\Provider\NotSyncedDataProvider::getIds
4949
*/
50-
public function testGet()
50+
public function testGetIds()
5151
{
5252
/** @var TMapFactory|MockObject $tMapFactory */
5353
$tMapFactory = $this->getMockBuilder(TMapFactory::class)
@@ -61,13 +61,13 @@ public function testGet()
6161
$provider1 = $this->getMockBuilder(NotSyncedDataProviderInterface::class)
6262
->getMockForAbstractClass();
6363
$provider1->expects(static::once())
64-
->method('get')
64+
->method('getIds')
6565
->willReturn([1, 2]);
6666

6767
$provider2 = $this->getMockBuilder(NotSyncedDataProviderInterface::class)
6868
->getMockForAbstractClass();
6969
$provider2->expects(static::once())
70-
->method('get')
70+
->method('getIds')
7171
->willReturn([2, 3, 4]);
7272

7373
$tMapFactory->expects(static::once())

0 commit comments

Comments
 (0)