aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs b/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs
index 68303b0..c7f3bfc 100644
--- a/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs
+++ b/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs
@@ -86,9 +86,11 @@ namespace OpenSim.Framework.Communications.Tests
86 86
87 TestCommunicationsManager commsManager = new TestCommunicationsManager(); 87 TestCommunicationsManager commsManager = new TestCommunicationsManager();
88 UserProfileCacheService userCacheService = commsManager.UserProfileCacheService; 88 UserProfileCacheService userCacheService = commsManager.UserProfileCacheService;
89 IUserDataPlugin userDataPlugin = commsManager.UserDataPlugin;
89 90
90 // Check that we can't update info before it exists 91 // Check that we can't update info before it exists
91 Assert.That(userCacheService.UpdateProfile(newProfile), Is.False); 92 Assert.That(userCacheService.UpdateProfile(newProfile), Is.False);
93 Assert.That(userDataPlugin.GetUserByUUID(userId), Is.Null);
92 94
93 // Check that we can update a profile once it exists 95 // Check that we can update a profile once it exists
94 LocalUserServices lus = (LocalUserServices)commsManager.UserService; 96 LocalUserServices lus = (LocalUserServices)commsManager.UserService;
@@ -97,6 +99,7 @@ namespace OpenSim.Framework.Communications.Tests
97 Assert.That(userCacheService.UpdateProfile(newProfile), Is.True); 99 Assert.That(userCacheService.UpdateProfile(newProfile), Is.True);
98 UserProfileData retrievedProfile = userCacheService.GetUserDetails(userId).UserProfile; 100 UserProfileData retrievedProfile = userCacheService.GetUserDetails(userId).UserProfile;
99 Assert.That(retrievedProfile.SurName, Is.EqualTo(newLastName)); 101 Assert.That(retrievedProfile.SurName, Is.EqualTo(newLastName));
102 Assert.That(userDataPlugin.GetUserByUUID(userId).SurName, Is.EqualTo(newLastName));
100 } 103 }
101 104
102 [Test] 105 [Test]