From e5ff7f389bcaa17634d8d93d1ffdcca36339dfeb Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Mon, 14 Nov 2011 20:31:16 +0000 Subject: Improved method doc for AddFriend() - it actually does set up a two-way relationship. Rename IFriendsModule.AddFriend() to AddFriendship() --- OpenSim/Region/CoreModules/Avatar/Friends/Tests/FriendModuleTests.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/CoreModules/Avatar/Friends/Tests') diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/Tests/FriendModuleTests.cs b/OpenSim/Region/CoreModules/Avatar/Friends/Tests/FriendModuleTests.cs index 942091c..c945dcf 100644 --- a/OpenSim/Region/CoreModules/Avatar/Friends/Tests/FriendModuleTests.cs +++ b/OpenSim/Region/CoreModules/Avatar/Friends/Tests/FriendModuleTests.cs @@ -87,8 +87,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends.Tests ScenePresence sp = SceneHelpers.AddScenePresence(m_scene, userId); SceneHelpers.AddScenePresence(m_scene, user2Id); - // This friendship is currently only one-way, which might be pathalogical in Second Life. - m_fm.AddFriend(sp.ControllingClient, user2Id); + // This fiendship is two-way but without a connector, only the first user will receive the online + // notification. + m_fm.AddFriendship(sp.ControllingClient, user2Id); Assert.That(((TestClient)sp.ControllingClient).OfflineNotificationsReceived.Count, Is.EqualTo(0)); Assert.That(((TestClient)sp.ControllingClient).OnlineNotificationsReceived.Count, Is.EqualTo(1)); -- cgit v1.1