1
0
mirror of https://github.com/bitwarden/server synced 2025-12-26 21:23:39 +00:00

update cipher service and tests

This commit is contained in:
jaasen-livefront
2025-12-03 17:12:05 -08:00
parent 23b5c76b86
commit b24edfac43
2 changed files with 3 additions and 0 deletions

View File

@@ -1829,6 +1829,8 @@ public class CipherServiceTests
await sutProvider.Sut.SoftDeleteAsync(cipherDetails, deletingUserId);
Assert.NotNull(cipherDetails.DeletedDate);
// Archives should be cleared on soft delete
Assert.Null(cipherDetails.Archives);
Assert.Equal(cipherDetails.RevisionDate, cipherDetails.DeletedDate);
await sutProvider.GetDependency<ICipherRepository>().Received(1).UpsertAsync(cipherDetails);
await sutProvider.GetDependency<IEventService>().Received(1).LogCipherEventAsync(cipherDetails, EventType.Cipher_SoftDeleted);