@@ -36,8 +36,6 @@ namespace Umbraco.Tests.Services
|
||||
CreateTestData();
|
||||
}
|
||||
|
||||
protected override Action<IServiceCollection> CustomTestSetup => (services) => services.AddSingleton<IProfiler, TestProfiler>();
|
||||
|
||||
[Test]
|
||||
public void Profiler()
|
||||
{
|
||||
|
||||
@@ -478,15 +478,6 @@ namespace Umbraco.Tests.Integration.Testing
|
||||
protected GlobalSettings GlobalSettings => Services.GetRequiredService<IOptions<GlobalSettings>>().Value;
|
||||
protected IMapperCollection Mappers => Services.GetRequiredService<IMapperCollection>();
|
||||
|
||||
protected IFileSystems GetMockFileSystems()
|
||||
{
|
||||
var testHelper = new TestHelper();
|
||||
var fileSystems = Mock.Of<IFileSystems>();
|
||||
var viewsFileSystem = new PhysicalFileSystem(IOHelper, testHelper.GetHostingEnvironment(), LoggerFactory.CreateLogger<PhysicalFileSystem>(), Constants.SystemDirectories.MvcViews);
|
||||
Mock.Get(fileSystems).Setup(x => x.MvcViewsFileSystem).Returns(viewsFileSystem);
|
||||
return fileSystems;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Builders
|
||||
|
||||
Reference in New Issue
Block a user