Skip to content

Commit a933cf7

Browse files
committed
10128: New Orders not being saved to order grid
1 parent 1ebcd7a commit a933cf7

File tree

1 file changed

+5
-5
lines changed
  • dev/tests/integration/testsuite/Magento/Backend/Block/Dashboard/Orders

1 file changed

+5
-5
lines changed

dev/tests/integration/testsuite/Magento/Backend/Block/Dashboard/Orders/GridTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88

99
use Magento\Backend\Block\Template\Context;
1010

11-
/**
12-
* @magentoAppIsolation enabled
13-
* @magentoDbIsolation enabled
14-
*/
1511
class GridTest extends \PHPUnit\Framework\TestCase
1612
{
1713
/**
@@ -39,6 +35,10 @@ protected function setUp()
3935
public function testGetPreparedCollection()
4036
{
4137
$collection = $this->block->getPreparedCollection();
42-
$this->assertEquals('firstname lastname', $collection->getItems()[1]->getCustomer());
38+
foreach ($collection->getItems() as $item) {
39+
if ($item->getIncrementId() == '100000001') {
40+
$this->assertEquals('firstname lastname', $item->getCustomer());
41+
}
42+
}
4343
}
4444
}

0 commit comments

Comments
 (0)