Пример #1
0
 public function testCreateWishlistErrorDuplicatedWishlist()
 {
     $_params = $this->_params;
     $_params['user_id'] = $this->_user_id;
     $response = $this->_getAuth($_params);
     //get created login information
     $wishlist_infor = Wishlist::get(array('user_id', 'wine_unique_id', 'updated_at', 'created_at', 'id'))->last();
     $this->assertNotNull($wishlist_infor);
     $this->assertEquals(array("code" => ApiResponse::DUPLICATED_WISHLIST_ADD, "data" => ApiResponse::getErrorContent(ApiResponse::DUPLICATED_WISHLIST_ADD)), json_decode($response->getContent(), true));
 }