Skip to content

Commit f4eb72f

Browse files
committed
MAGETWO-63945: Add extension point to sales grid indexer
- Fix integration test
1 parent c1b5c0e commit f4eb72f

File tree

1 file changed

+12
-15
lines changed
  • dev/tests/integration/testsuite/Magento/Sales/Model/ResourceModel

1 file changed

+12
-15
lines changed

dev/tests/integration/testsuite/Magento/Sales/Model/ResourceModel/GridTest.php

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
use Magento\Sales\Model\ResourceModel\Order\Grid\Collection;
99
use Magento\TestFramework\Helper\Bootstrap;
1010

11-
/**
12-
* Class GridTest
13-
*/
1411
class GridTest extends \PHPUnit_Framework_TestCase
1512
{
1613
/**
@@ -26,7 +23,17 @@ class GridTest extends \PHPUnit_Framework_TestCase
2623
protected function setUp()
2724
{
2825
$this->objectManager = Bootstrap::getObjectManager();
29-
$this->resourceModel = $this->objectManager->create('Magento\Sales\Model\ResourceModel\Order\Grid');
26+
$this->resourceModel = $this->objectManager->get('Magento\Sales\Model\ResourceModel\Order\Grid');
27+
}
28+
29+
/**
30+
* Tests synchronous insertion of the new entity into order grid.
31+
*
32+
* @magentoDataFixture Magento/Sales/_files/order.php
33+
*/
34+
public function testRefreshByScheduleSyncModeSuccess()
35+
{
36+
$this->assertNotEmpty($this->getOrderGridItemList());
3037
}
3138

3239
/**
@@ -53,17 +60,7 @@ public function testRefreshByScheduleAsyncModeFail()
5360
}
5461

5562
/**
56-
* Tests synchronous insertion of the new entity into order grid.
57-
*
58-
* @magentoDataFixture Magento/Sales/_files/order.php
59-
*/
60-
public function testRefreshByScheduleSyncModeSuccess()
61-
{
62-
$this->assertNotEmpty($this->getOrderGridItemList());
63-
}
64-
65-
/**
66-
* Returns sales order grid items
63+
* Returns sales order grid items.
6764
*
6865
* @return \Magento\Framework\DataObject[]
6966
*/

0 commit comments

Comments
 (0)