add test to check move of task item to user inventory when a target folder is explicitly given
parent
8bb073d99a
commit
46d06b6c4c
|
@ -90,6 +90,32 @@ namespace OpenSim.Region.Framework.Tests
|
||||||
return ncItem;
|
return ncItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test MoveTaskInventoryItem where the item has no parent folder assigned.
|
||||||
|
/// </summary>
|
||||||
|
/// This should place it in the most suitable user folder.
|
||||||
|
[Test]
|
||||||
|
public void TestMoveTaskInventoryItem()
|
||||||
|
{
|
||||||
|
TestHelper.InMethod();
|
||||||
|
// log4net.Config.XmlConfigurator.Configure();
|
||||||
|
|
||||||
|
Scene scene = SceneSetupHelpers.SetupScene("inventory");
|
||||||
|
UserAccount user1 = CreateUser(scene);
|
||||||
|
SceneObjectGroup sog1 = CreateSO1(scene, user1.PrincipalID);
|
||||||
|
SceneObjectPart sop1 = sog1.RootPart;
|
||||||
|
TaskInventoryItem sopItem1 = CreateSOItem1(scene, sop1);
|
||||||
|
InventoryFolderBase folder
|
||||||
|
= InventoryArchiveUtils.FindFolderByPath(scene.InventoryService, user1.PrincipalID, "Objects")[0];
|
||||||
|
|
||||||
|
// Perform test
|
||||||
|
scene.MoveTaskInventoryItem(user1.PrincipalID, folder.ID, sop1, sopItem1.ItemID);
|
||||||
|
|
||||||
|
InventoryItemBase ncUserItem
|
||||||
|
= InventoryArchiveUtils.FindItemByPath(scene.InventoryService, user1.PrincipalID, "Objects/ncItem");
|
||||||
|
Assert.That(ncUserItem, Is.Not.Null, "Objects/ncItem was not found");
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test MoveTaskInventoryItem where the item has no parent folder assigned.
|
/// Test MoveTaskInventoryItem where the item has no parent folder assigned.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue