1 | <?php |
||
8 | class OrdersTest extends TestCase |
||
9 | { |
||
10 | /** |
||
11 | * Send http request. |
||
12 | * |
||
13 | * @param \Moip\Resource\Orders $order |
||
14 | * @param string $body |
||
15 | * |
||
16 | * @return \Moip\Resource\Orders |
||
17 | */ |
||
18 | private function executeOrder(Orders $order = null, $body = null) |
||
30 | |||
31 | /** |
||
32 | * @const string |
||
33 | */ |
||
34 | public function testAssertConstPath() |
||
35 | { |
||
36 | $this->assertEquals('orders', Orders::PATH); |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * Defines what kind of payee as pripmary. |
||
41 | * |
||
42 | * @const string |
||
43 | */ |
||
44 | public function testAssertConstReceiverTypePrimary() |
||
48 | |||
49 | /** |
||
50 | * Defines what kind of payee as secundary. |
||
51 | * |
||
52 | * @const string |
||
53 | */ |
||
54 | public function testAssertConstReceiverTypeSecpndary() |
||
58 | |||
59 | /** |
||
60 | * Currency used in the application. |
||
61 | * |
||
62 | * @const string |
||
63 | */ |
||
64 | public function testAssertConstAmountCurrency() |
||
65 | { |
||
66 | $this->assertEquals('BRL', Orders::AMOUNT_CURRENCY); |
||
67 | } |
||
68 | |||
69 | /** |
||
70 | * MoipTest creating an order. |
||
71 | */ |
||
72 | public function testCreateOrder() |
||
79 | |||
80 | /** |
||
81 | * Teste if created itens price is correct. |
||
82 | */ |
||
83 | public function testItens() |
||
90 | |||
91 | /** |
||
92 | *MoipTest if the total is correct. |
||
93 | */ |
||
94 | public function testTotal() |
||
101 | |||
102 | /** |
||
103 | * MoipTest if the total is equal to the expected total. |
||
104 | */ |
||
105 | public function testTotalConstant() |
||
114 | |||
115 | /** |
||
116 | * MoipTest if order is created with installment preferences. |
||
117 | */ |
||
118 | public function testCreateOrderWithInstallmentPreferences() |
||
129 | |||
130 | public function testCreateOrderAddingReceiverNoAmount() |
||
138 | |||
139 | public function testCreateOrderAddingReceiverAmountFixed() |
||
145 | |||
146 | public function testCreateOrderAddingReceiverAmountPercentual() |
||
152 | |||
153 | public function testCreateOrderAddingReceiverFeePayor() |
||
164 | } |
||
165 |