aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Data')
-rw-r--r--OpenSim/Data/Tests/BasicInventoryTest.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Data/Tests/BasicInventoryTest.cs b/OpenSim/Data/Tests/BasicInventoryTest.cs
index 0d15fac..b871c4e 100644
--- a/OpenSim/Data/Tests/BasicInventoryTest.cs
+++ b/OpenSim/Data/Tests/BasicInventoryTest.cs
@@ -58,6 +58,7 @@ namespace OpenSim.Data.Tests
58 public string name1; 58 public string name1;
59 public string name2; 59 public string name2;
60 public string name3; 60 public string name3;
61 public string niname1;
61 public string iname1; 62 public string iname1;
62 public string iname2; 63 public string iname2;
63 public string iname3; 64 public string iname3;
@@ -80,6 +81,7 @@ namespace OpenSim.Data.Tests
80 name1 = "Root Folder for " + owner1.ToString(); 81 name1 = "Root Folder for " + owner1.ToString();
81 name2 = "First Level folder"; 82 name2 = "First Level folder";
82 name3 = "First Level folder 2"; 83 name3 = "First Level folder 2";
84 niname1 = "My Shirt";
83 iname1 = "Shirt"; 85 iname1 = "Shirt";
84 iname2 = "Text Board"; 86 iname2 = "Text Board";
85 iname3 = "No Pants Barrel"; 87 iname3 = "No Pants Barrel";
@@ -235,6 +237,23 @@ namespace OpenSim.Data.Tests
235 Assert.That(i3.AssetID, Is.EqualTo(asset3)); 237 Assert.That(i3.AssetID, Is.EqualTo(asset3));
236 } 238 }
237 239
240 [Test]
241 public void T103UpdateItem()
242 {
243 // TODO: probably shouldn't have the ability to have an
244 // owner of an item in a folder not owned by the user
245
246 InventoryItemBase i1 = db.getInventoryItem(item1);
247 i1.Name = niname1;
248 i1.Description = niname1;
249 i1.Owner = owner2;
250 db.updateInventoryItem(i1);
251
252 i1 = db.getInventoryItem(item1);
253 Assert.That(i1.Name, Is.EqualTo(niname1));
254 Assert.That(i1.Description, Is.EqualTo(niname1));
255 Assert.That(i1.Owner, Is.EqualTo(owner2));
256 }
238 257
239 private InventoryItemBase NewItem(UUID id, UUID parent, UUID owner, string name, UUID asset) 258 private InventoryItemBase NewItem(UUID id, UUID parent, UUID owner, string name, UUID asset)
240 { 259 {