- updated usage of EmptyRecycleBin to pass in the user id as instructed in warning messages

This commit is contained in:
Paul Seal
2019-10-08 23:52:11 +01:00
committed by Sebastiaan Janssen
parent 0567ed9a34
commit 4e6bbcf6c2

View File

@@ -1087,7 +1087,7 @@ namespace Umbraco.Tests.Integration
[Test]
public void EmptyRecycleBinContent()
{
ServiceContext.ContentService.EmptyRecycleBin();
ServiceContext.ContentService.EmptyRecycleBin(Constants.Security.SuperUserId);
var content = CreateContent();
Assert.IsNotNull(content);
@@ -1095,7 +1095,7 @@ namespace Umbraco.Tests.Integration
ServiceContext.ContentService.MoveToRecycleBin(content);
ResetEvents();
ServiceContext.ContentService.EmptyRecycleBin();
ServiceContext.ContentService.EmptyRecycleBin(Constants.Security.SuperUserId);
Assert.AreEqual(2, _msgCount);
Assert.AreEqual(2, _events.Count);
@@ -1109,7 +1109,7 @@ namespace Umbraco.Tests.Integration
[Test]
public void EmptyRecycleBinContents()
{
ServiceContext.ContentService.EmptyRecycleBin();
ServiceContext.ContentService.EmptyRecycleBin(Constants.Security.SuperUserId);
var content1 = CreateContent();
Assert.IsNotNull(content1);
@@ -1120,7 +1120,7 @@ namespace Umbraco.Tests.Integration
ServiceContext.ContentService.MoveToRecycleBin(content2);
ResetEvents();
ServiceContext.ContentService.EmptyRecycleBin();
ServiceContext.ContentService.EmptyRecycleBin(Constants.Security.SuperUserId);
Assert.AreEqual(3, _msgCount);
Assert.AreEqual(4, _events.Count);
@@ -1136,7 +1136,7 @@ namespace Umbraco.Tests.Integration
[Test]
public void EmptyRecycleBinBranch()
{
ServiceContext.ContentService.EmptyRecycleBin();
ServiceContext.ContentService.EmptyRecycleBin(Constants.Security.SuperUserId);
var content1 = CreateBranch();
Assert.IsNotNull(content1);
@@ -1151,7 +1151,7 @@ namespace Umbraco.Tests.Integration
var content4C = Children(content1C[2]).ToArray();
var content5C = Children(content1C[3]).ToArray();
ServiceContext.ContentService.EmptyRecycleBin();
ServiceContext.ContentService.EmptyRecycleBin(Constants.Security.SuperUserId);
Assert.AreEqual(14, _msgCount);
Assert.AreEqual(14, _events.Count);