public function testLists()
 {
     $postage = new Postage(Config::get());
     $response = $postage->lists();
     $this->assertTrue(is_array($response));
 }
 /**
  * @depends testGetSub
  */
 public function testGetProperty($cateId)
 {
     $postage = new Product(Config::get());
     $response = $postage->getProperty($cateId);
     $this->assertTrue(is_array($response));
     return $response;
 }
 /**
  * @depends testAdd
  */
 public function testGetById($groupId)
 {
     $group = new Group(Config::get());
     $response = $group->getById($groupId);
     $this->assertTrue(is_array($response));
 }
 /**
  * @depends testGetById
  */
 public function testClose($orderId)
 {
     $order = new Order(Config::get());
     $response = $order->close($orderId);
     $this->assertTrue($response);
 }
 /**
  * @depends testAdd
  */
 public function testGetById($shelfId)
 {
     $shelf = new Shelf(Config::get());
     $response = $shelf->getById($shelfId);
     $this->assertTrue(is_array($response));
 }
 public function testGetSkuInfo()
 {
     $stock = new Stock(Config::get());
     $data = $stock->getSkuInfo(array(array('a', 'a1'), array('b', 'b1')));
     $this->assertEquals('a:a1;b:b1', $data);
 }