File tree Expand file tree Collapse file tree 1 file changed +12
-15
lines changed
dev/tests/integration/testsuite/Magento/Sales/Model/ResourceModel Expand file tree Collapse file tree 1 file changed +12
-15
lines changed Original file line number Diff line number Diff line change 8
8
use Magento \Sales \Model \ResourceModel \Order \Grid \Collection ;
9
9
use Magento \TestFramework \Helper \Bootstrap ;
10
10
11
- /**
12
- * Class GridTest
13
- */
14
11
class GridTest extends \PHPUnit_Framework_TestCase
15
12
{
16
13
/**
@@ -26,7 +23,17 @@ class GridTest extends \PHPUnit_Framework_TestCase
26
23
protected function setUp ()
27
24
{
28
25
$ 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 ());
30
37
}
31
38
32
39
/**
@@ -53,17 +60,7 @@ public function testRefreshByScheduleAsyncModeFail()
53
60
}
54
61
55
62
/**
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.
67
64
*
68
65
* @return \Magento\Framework\DataObject[]
69
66
*/
You can’t perform that action at this time.
0 commit comments