48 $this->statementMock = $this->getMockForAbstractClass(\Zend_Db_Statement_Interface::class);
55 $this->gridPool = new \Magento\Sales\Model\ResourceModel\GridPool($grids);
65 $this->orderGridMock->expects($this->once())
66 ->method(
'getOrderIdField')
67 ->willReturn(
'sfo.entity_id');
68 $this->invoiceGridMock->expects($this->once())
69 ->method(
'getOrderIdField')
70 ->willReturn(
'sfo.entity_id');
71 $this->shipmentGridMock->expects($this->once())
72 ->method(
'getOrderIdField')
73 ->willReturn(
'sfo.entity_id');
74 $this->creditmemoGridMock->expects($this->once())
75 ->method(
'getOrderIdField')
76 ->willReturn(
'sfo.entity_id');
78 $this->orderGridMock->expects($this->once())
80 ->with($this->equalTo($orderId), $this->equalTo(
'sfo.entity_id'))
81 ->will($this->returnValue($this->statementMock));
82 $this->invoiceGridMock->expects($this->once())
84 ->with($this->equalTo($orderId), $this->equalTo(
'sfo.entity_id'))
85 ->will($this->returnValue($this->statementMock));
86 $this->shipmentGridMock->expects($this->once())
88 ->with($this->equalTo($orderId), $this->equalTo(
'sfo.entity_id'))
89 ->will($this->returnValue($this->statementMock));
90 $this->creditmemoGridMock->expects($this->once())
92 ->with($this->equalTo($orderId), $this->equalTo(
'sfo.entity_id'))
93 ->will($this->returnValue($this->statementMock));
94 $this->assertEquals($this->gridPool, $this->gridPool->refreshByOrderId($orderId));