1 | <?php |
||
8 | class UpdateItemStockInfoTest extends TestCase |
||
9 | { |
||
10 | /** |
||
11 | * @test |
||
12 | * @expectedException \Shippinno\YahooShoppingJp\Exception\InvalidRequestException |
||
13 | * @expectedExceptionMessage quantity is not set. |
||
14 | */ |
||
15 | public function quantity_is_not_set() |
||
22 | |||
23 | /** |
||
24 | * @test |
||
25 | * @expectedException \Shippinno\YahooShoppingJp\Exception\InvalidRequestException |
||
26 | * @expectedExceptionMessage item_code is not set. |
||
27 | */ |
||
28 | public function item_code_is_not_set() |
||
35 | |||
36 | /** |
||
37 | * @test |
||
38 | * @expectedException \Shippinno\YahooShoppingJp\Exception\InvalidRequestException |
||
39 | * @expectedExceptionMessage seller_id is not set. |
||
40 | */ |
||
41 | public function seller_id_is_not_set() |
||
48 | |||
49 | /** |
||
50 | * @test |
||
51 | */ |
||
52 | public function seller_id_is_number_or_alphabet_lowercase_or_dash_set() |
||
58 | |||
59 | /** |
||
60 | * @test |
||
61 | */ |
||
62 | public function sub_code_is_not_set() |
||
68 | |||
69 | /** |
||
70 | * @test |
||
71 | */ |
||
72 | public function item_code_and_sub_code_is_number_or_alphabet_upper_or_lowercase_or_dash_set() |
||
78 | |||
79 | /** |
||
80 | * @test |
||
81 | * @expectedException \Shippinno\YahooShoppingJp\Exception\InvalidRequestException |
||
82 | * @expectedExceptionMessage item_code error. |
||
83 | */ |
||
84 | public function item_code_is_only_number_or_alphabet_upper_or_lowercase_or_dash_set() |
||
90 | |||
91 | /** |
||
92 | * @test |
||
93 | * @expectedException \Shippinno\YahooShoppingJp\Exception\InvalidRequestException |
||
94 | * @expectedExceptionMessage sub_code error. |
||
95 | */ |
||
96 | public function sub_code_is_only_number_or_alphabet_upper_or_lowercase_or_dash_set() |
||
102 | |||
103 | /** |
||
104 | * @test |
||
105 | */ |
||
106 | public function quantity_is_number_set() |
||
112 | |||
113 | /** |
||
114 | * @test |
||
115 | */ |
||
116 | public function quantity_is_negative_number_set() |
||
122 | |||
123 | /** |
||
124 | * @test |
||
125 | */ |
||
126 | public function quantity_is_string_ini_set() |
||
132 | |||
133 | /** |
||
134 | * @test |
||
135 | * @expectedException \Shippinno\YahooShoppingJp\Exception\InvalidRequestException |
||
136 | * @expectedExceptionMessage Only number or INI can be set. |
||
137 | */ |
||
138 | public function quantity_is_only_number_or_string_ini_set() |
||
144 | |||
145 | /** |
||
146 | * @test |
||
147 | */ |
||
148 | public function allow_overdraft_is_boolean_set() |
||
154 | |||
155 | /** |
||
156 | * @test |
||
157 | */ |
||
158 | public function get_params_is_set() |
||
174 | } |
||
175 |