|
@@ 55-68 (lines=14) @@
|
| 52 |
|
$this->assertNotEmpty($transfer->getId()); |
| 53 |
|
} |
| 54 |
|
|
| 55 |
|
public function testShouldCreateTransferWithBankAccountId() |
| 56 |
|
{ |
| 57 |
|
$bank_account = $this->createBankAccount(); |
| 58 |
|
|
| 59 |
|
$this->mockHttpSession($this->body_transfers_bankaccount_create); |
| 60 |
|
|
| 61 |
|
$amount = 500; |
| 62 |
|
$transfer = $this->moip->transfers() |
| 63 |
|
->setAmount($amount) |
| 64 |
|
->transferWithBankAccountId($bank_account->getId()) |
| 65 |
|
->execute(); |
| 66 |
|
|
| 67 |
|
$this->assertNotEmpty($transfer->getId()); |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
public function testShouldCreateTransferWithMoipAccountId() |
| 71 |
|
{ |
|
@@ 70-82 (lines=13) @@
|
| 67 |
|
$this->assertNotEmpty($transfer->getId()); |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
public function testShouldCreateTransferWithMoipAccountId() |
| 71 |
|
{ |
| 72 |
|
$this->mockHttpSession($this->body_transfers_moipaccount_create); |
| 73 |
|
|
| 74 |
|
$ammount = 500; |
| 75 |
|
$moipAccountId = 'MPA-5E1C4C369E8C'; |
| 76 |
|
$transfer = $this->moip->transfers() |
| 77 |
|
->setAmount($ammount) |
| 78 |
|
->transferToMoipAccount($moipAccountId) |
| 79 |
|
->execute(); |
| 80 |
|
|
| 81 |
|
$this->assertNotEmpty($transfer->getAmount()); |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
public function testShouldGetTransfer() |
| 85 |
|
{ |