コード例 #1
0
ファイル: BitcoinReceiverTest.php プロジェクト: cso4tb/Auxum-
 public function testRefund()
 {
     self::authorizeFromEnv();
     $receiver = $this->createTestBitcoinReceiver("*****@*****.**");
     $receiver = BitcoinReceiver::retrieve($receiver->id);
     $this->assertNull($receiver->refund_address);
     $refundAddress = "REFUNDHERE";
     $receiver->refund(array("refund_address" => $refundAddress));
     $this->assertSame($refundAddress, $receiver->refund_address);
 }
コード例 #2
0
ファイル: BitcoinReceiverTest.php プロジェクト: parsonsc/dofe
 public function testUpdateWithoutCustomer()
 {
     self::authorizeFromEnv();
     $receiver = $this->createTestBitcoinReceiver("*****@*****.**");
     $receiver->description = "a new description";
     $receiver->save();
     $this->assertEquals(BitcoinReceiver::classUrl() . "/" . $receiver['id'], $receiver->instanceUrl());
     $updatedReceiver = BitcoinReceiver::retrieve($receiver->id);
     $this->assertEquals($receiver["description"], $updatedReceiver["description"]);
 }