Closed rchoffardet closed 6 years ago
Hey @rchoffardet,
It is possible to receive such response when code is out of stock. We are going to update stock of products like text/ image to bigger values.
Consider it as good opportunity for validating product stock before request.
Thanks, CodesWholesale
But this is a problem : Unit tests needs to receive the same input everything. This way, they can be use to check if the Unit code works or not. If this item can become out of stock, input varies and this is not good !
Your unit tests should not depend on external service. You should mock your implementation of CodesWholesale. All products can be out of stock
I wouldn't test your sdk if you had tests, but you don't. Also you have this four products :
You told me (https://github.com/codeswholesale/codeswholesale-sdk-php/issues/25#issuecomment-346045230) that you were going to update the stock : product is still out of stock
Plus, I asked you to implement a way to avoid preorders (even if out of stock) : https://github.com/codeswholesale/codeswholesale-sdk-php/issues/9 This one one year and an half ago ! You said you'll do it ASAP, I'm still waiting.
Hey there,
I am happy to inform you that we released new version of SDK, which supports you previous requirements like avoiding preorders. Take a look at new features here: https://github.com/codeswholesale/codeswholesale-sdk-php/releases/tag/2.0
Hey,
I'm actually doing improvements to an existing implement of your api. For unit testing purposes I need to get only text code.
You have a product called "Test with text codes only" with id "ffe2274d-5469-4b0f-b57b-f8d21b09c24c", unfortunately when I try to order it, I receive a preorder, which is not desirable.