Even more IOHelper reduction, fixes some tests

This commit is contained in:
Shannon
2020-04-03 15:36:57 +11:00
parent b3da9a904b
commit c48f36f6a2
15 changed files with 57 additions and 46 deletions

View File

@@ -59,6 +59,7 @@ namespace Umbraco.Core.IO
if (Path.IsPathRooted(rootPath) == false)
{
// but the test suite App.config cannot really "root" anything so we have to do it here
// TODO: This will map to the web content root (www) not the web app root, is that what we want? Else we need to use IHostingEnvironment.ApplicationPhysicalPath
var localRoot = _ioHelper.MapPath("~");
rootPath = Path.Combine(localRoot, rootPath);
}