예제 #1
0
 /**
  * @dataProvider canVoidDataProvider
  * @param bool $canVoid
  */
 public function testDefaultCanVoid($canVoid)
 {
     $this->model->setState(\Magento\Sales\Model\Order\Invoice::STATE_PAID);
     $this->model->setCanVoidFlag($canVoid);
     $this->assertEquals($canVoid, $this->model->canVoid());
 }