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