| @@ 21-33 (lines=13) @@ | ||
| 18 | // * @depends ProductTest::testCreate |
|
| 19 | // * @depends testGetSkuInfo |
|
| 20 | // */ |
|
| 21 | public function testAdd() |
|
| 22 | { |
|
| 23 | $productId = 'pe4OowbHVULEWICFN1t6iy2BPWXA'; |
|
| 24 | $skuInfo = ''; |
|
| 25 | ||
| 26 | $stock = new Stock($this->http); |
|
| 27 | $response = $stock->add($productId,100); |
|
| 28 | $this->assertTrue($response); |
|
| 29 | ||
| 30 | $stock = new Stock($this->http); |
|
| 31 | $response = $stock->add($productId,'100'); |
|
| 32 | $this->assertTrue($response); |
|
| 33 | } |
|
| 34 | ||
| 35 | // /** |
|
| 36 | // * @depends ProductTest::testCreate |
|
| @@ 39-52 (lines=14) @@ | ||
| 36 | // * @depends ProductTest::testCreate |
|
| 37 | // * @depends testGetSkuInfo |
|
| 38 | // */ |
|
| 39 | public function testReduce() |
|
| 40 | { |
|
| 41 | ||
| 42 | $productId = 'pe4OowbHVULEWICFN1t6iy2BPWXA'; |
|
| 43 | $skuInfo = ''; |
|
| 44 | ||
| 45 | $stock = new Stock($this->http); |
|
| 46 | $response = $stock->reduce($productId,100); |
|
| 47 | $this->assertTrue($response); |
|
| 48 | ||
| 49 | $stock = new Stock($this->http); |
|
| 50 | $response = $stock->reduce($productId,100); |
|
| 51 | $this->assertTrue($response); |
|
| 52 | } |
|
| 53 | ||
| 54 | public function testGetSkuInfo() |
|
| 55 | { |
|