Exemple #1
0
 /**
  * test order unhold service
  */
 public function testInvoke()
 {
     $this->orderRepositoryMock->expects($this->once())->method('get')->with($this->equalTo(1))->will($this->returnValue($this->orderMock));
     $this->orderMock->expects($this->once())->method('unhold')->will($this->returnSelf());
     $this->assertTrue($this->orderUnHold->invoke(1));
 }
Exemple #2
0
 /**
  * @param int $id
  * @return bool
  * @throws \Magento\Framework\Exception\NoSuchEntityException
  */
 public function unHold($id)
 {
     return $this->orderUnHold->invoke($id);
 }