1 | <?php |
||
11 | class UpdateOrderStatusRequestTest extends TestCase |
||
12 | { |
||
13 | const VALID_SELLER_ID = 'SELLER_ID'; |
||
14 | const VALID_ORDER_ID = 'ORDER_ID'; |
||
15 | const VALID_IS_POINT_FIX = true; |
||
16 | const VALID_OPERATION_USER = 'OPERATION_USER'; |
||
17 | |||
18 | protected $order_status; |
||
19 | protected $cancel_reason; |
||
20 | |||
21 | protected function setUp() |
||
26 | |||
27 | /** |
||
28 | * @test |
||
29 | */ |
||
30 | public function create_instance_with_only_required_fields() |
||
42 | |||
43 | /** |
||
44 | * @test |
||
45 | * @depends create_instance_with_only_required_fields |
||
46 | */ |
||
47 | public function check_SellerId_value($instance) |
||
53 | |||
54 | /** |
||
55 | * @test |
||
56 | * @depends create_instance_with_only_required_fields |
||
57 | * @expectedException \LogicException |
||
58 | */ |
||
59 | public function set_SellerId_once(UpdateOrderStatusRequest $instance) |
||
63 | |||
64 | /** |
||
65 | * @test |
||
66 | * @depends create_instance_with_only_required_fields |
||
67 | */ |
||
68 | public function check_OrderId_value($instance) |
||
74 | |||
75 | /** |
||
76 | * @test |
||
77 | * @depends create_instance_with_only_required_fields |
||
78 | * @expectedException \LogicException |
||
79 | */ |
||
80 | public function set_OrderId_once($instance) |
||
84 | |||
85 | /** |
||
86 | * @test |
||
87 | * @depends create_instance_with_only_required_fields |
||
88 | */ |
||
89 | public function check_IsPointFix_value($instance) |
||
95 | |||
96 | /** |
||
97 | * @test |
||
98 | * @depends create_instance_with_only_required_fields |
||
99 | * @expectedException \LogicException |
||
100 | */ |
||
101 | public function set_IsPointFix_once($instance) |
||
105 | |||
106 | /** |
||
107 | * @test |
||
108 | * @depends create_instance_with_only_required_fields |
||
109 | */ |
||
110 | public function check_OrderStatus_value($instance) |
||
116 | |||
117 | /** |
||
118 | * @test |
||
119 | * @depends create_instance_with_only_required_fields |
||
120 | * @expectedException \LogicException |
||
121 | */ |
||
122 | public function set_OrderStatus_once($instance) |
||
126 | |||
127 | /** |
||
128 | * @test |
||
129 | * @depends create_instance_with_only_required_fields |
||
130 | * @expectedException \LogicException |
||
131 | */ |
||
132 | public function set_OperationUser_once($instance) |
||
137 | |||
138 | /** |
||
139 | * @test |
||
140 | * @depends create_instance_with_only_required_fields |
||
141 | */ |
||
142 | public function check_OperationUser_value($instance) |
||
148 | |||
149 | /** |
||
150 | * @test |
||
151 | * @depends create_instance_with_only_required_fields |
||
152 | * @expectedException \LogicException |
||
153 | */ |
||
154 | public function set_CancelReason_once($instance) |
||
160 | |||
161 | /** |
||
162 | * @test |
||
163 | * @depends create_instance_with_only_required_fields |
||
164 | */ |
||
165 | public function check_CancelReason_value($instance) |
||
171 | |||
172 | /** |
||
173 | * @test |
||
174 | * @expectedException \Shippinno\YahooShoppingJp\Exception\InvalidRequestException |
||
175 | */ |
||
176 | public function validate_not_set_SellerId() |
||
185 | |||
186 | /** |
||
187 | * @test |
||
188 | * @expectedException \Shippinno\YahooShoppingJp\Exception\InvalidRequestException |
||
189 | */ |
||
190 | public function validate_not_set_OrderId() |
||
199 | |||
200 | /** |
||
201 | * @test |
||
202 | * @expectedException \Shippinno\YahooShoppingJp\Exception\InvalidRequestException |
||
203 | */ |
||
204 | public function validate_not_set_IsPointFix() |
||
213 | |||
214 | /** |
||
215 | * @test |
||
216 | * @expectedException \Shippinno\YahooShoppingJp\Exception\InvalidRequestException |
||
217 | */ |
||
218 | public function validate_not_set_OrderStatus() |
||
227 | |||
228 | /** |
||
229 | * @test |
||
230 | * @expectedException \Shippinno\YahooShoppingJp\Exception\InvalidRequestException |
||
231 | */ |
||
232 | public function validate_OrderStatus_and_IsPointFix() |
||
244 | |||
245 | } |
||
246 |