UAASSCRUM-1045 Umbraco 7.7: New sites created have an "Administrator” user visible in the back office.

This commit is contained in:
Shannon
2017-08-22 17:55:28 +10:00
parent 98bd044823
commit 3106c22287
5 changed files with 73 additions and 28 deletions

View File

@@ -104,7 +104,7 @@ namespace Umbraco.Tests.Web.Controllers
var userServiceMock = Mock.Get(helper.UmbracoContext.Application.Services.UserService);
var users = MockedUser.CreateMulipleUsers(10);
long outVal = 10;
userServiceMock.Setup(service => service.GetAll(It.IsAny<long>(), It.IsAny<int>(), out outVal, It.IsAny<string>(), It.IsAny<Direction>(), It.IsAny<UserState[]>(), It.IsAny<string[]>(), It.IsAny<string[]>(), It.IsAny<string>()))
userServiceMock.Setup(service => service.GetAll(It.IsAny<long>(), It.IsAny<int>(), out outVal, It.IsAny<string>(), It.IsAny<Direction>(), It.IsAny<UserState[]>(), It.IsAny<string[]>(), It.IsAny<string>()))
.Returns(() => users);
//we need to manually apply automapper mappings with the mocked applicationcontext