示例#1
0
 /**
  * @test
  */
 public function shouldMarkUnknownIfStatusUnknown()
 {
     $action = new StatusAction();
     $action->execute($getStatus = new GetHumanStatus(array('status' => 'unknown')));
     $this->assertTrue($getStatus->isUnknown());
 }
示例#2
0
 /**
  * @test
  */
 public function shouldMarkRefundedIfRefundInvoiceNumberSet()
 {
     $action = new StatusAction();
     $action->execute($getStatus = new GetHumanStatus(array('refund_invoice_number' => 'aNum')));
     $this->assertTrue($getStatus->isRefunded());
 }