1 | <?php |
||
10 | class MoipTest extends MoipTestCase |
||
11 | { |
||
12 | /** |
||
13 | * Test if endpoint production is valid. |
||
14 | */ |
||
15 | public function testShouldReceiveEndpointProductionIsValid() |
||
16 | { |
||
17 | $expected = 'api.moip.com.br'; |
||
18 | $actual = constant('\Moip\Moip::ENDPOINT_PRODUCTION'); |
||
19 | |||
20 | $this->assertEquals($expected, $actual); |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * Test if endpoint sandbox is valid. |
||
25 | */ |
||
26 | public function testShouldReceiveSandboxProductionIsValid() |
||
27 | { |
||
28 | $expected = 'sandbox.moip.com.br'; |
||
29 | $actual = constant('\Moip\Moip::ENDPOINT_SANDBOX'); |
||
30 | |||
31 | $this->assertEquals($expected, $actual); |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * Test if const CLIENT is valid. |
||
36 | */ |
||
37 | public function testShouldReceiveClientIsValid() |
||
38 | { |
||
39 | $client = 'Moip SDK'; |
||
40 | $const_client = constant('\Moip\Moip::CLIENT'); |
||
41 | |||
42 | $this->assertEquals($client, $const_client); |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * test create connection. |
||
47 | */ |
||
48 | public function testCreateConnection() |
||
70 | |||
71 | /** |
||
72 | * Test should return instance of \Moip\Resource\Customer. |
||
73 | */ |
||
74 | public function testShouldReceiveInstanceOfCustomer() |
||
80 | |||
81 | /** |
||
82 | * Test should return instance of \Moip\Resource\Entry. |
||
83 | */ |
||
84 | public function testShouldReceiveInstanceOfEntry() |
||
90 | |||
91 | /** |
||
92 | * Test should return instance of \Moip\Resource\Orders. |
||
93 | */ |
||
94 | public function testShouldReceiveInstanceOfOrders() |
||
100 | |||
101 | /** |
||
102 | * Test should return instance of \Moip\Resource\Payment. |
||
103 | */ |
||
104 | public function testShouldReceiveInstanceOfPayment() |
||
110 | |||
111 | /** |
||
112 | * Test should return instance of \Moip\Resource\Multiorders. |
||
113 | */ |
||
114 | public function testShouldReceiveInstanceOfMultiorders() |
||
120 | |||
121 | public function testShouldGetEndpoint() |
||
122 | { |
||
127 | } |
||
128 |