Move umbraco views to static assets and make that an RCL + Embedded language files (#12324)
* RCL for static assets to replace the nuspec * Fix build * Fix unit tests * clean up in build.ps1 * Removed test (lang files will be removed later anyway) * Fixed namespaces.. + Ensure we set web root path if missing (e.g. wwwroot folder do not exist) + Added StaticWebAssetBasePath * fixed namespace * cleanup * Set root variable * Added static assets * Experimenting with StaticWebAssetBasePath * Embedded lang files into Umbraco.Core * Removed legacy test. New test can be implemented instead * Fixed tests * clean up * Fix merge issue
This commit is contained in:
@@ -33,7 +33,7 @@ namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Common
|
||||
private IEnumerable<string> GetUiFiles(IEnumerable<string> pathFromNetCore)
|
||||
{
|
||||
var root = TestContext.CurrentContext.TestDirectory.Split("tests")[0];
|
||||
var pathToFiles = Path.Combine(root, "src", "Umbraco.Web.UI");
|
||||
var pathToFiles = Path.Combine(root, "src", "Umbraco.Cms.StaticAssets");
|
||||
foreach (var pathSection in pathFromNetCore)
|
||||
{
|
||||
pathToFiles = Path.Combine(pathToFiles, pathSection);
|
||||
@@ -94,18 +94,6 @@ namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Web.Common
|
||||
|
||||
Assert.True(views.Contains(fileName), $"Expected {fileName} to exist, but it didn't");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void LanguageFilesAreLowercase()
|
||||
{
|
||||
IEnumerable<string> files = GetUiFiles(new[] { "umbraco", "config", "lang" });
|
||||
foreach (var fileName in files)
|
||||
{
|
||||
Assert.AreEqual(
|
||||
fileName.ToLower(),
|
||||
fileName,
|
||||
$"Language files must be all lowercase but {fileName} is not lowercase.");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user