Fix legacy scope provider no longer implementing ICoreScopeProvider (#12480)

This commit is contained in:
Paul Johnson
2022-05-25 10:08:43 +01:00
committed by GitHub
parent 88f3628d0a
commit fcee6dc06a
2 changed files with 10 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
using NUnit.Framework;
using Umbraco.Cms.Core.Scoping;
using Umbraco.Cms.Tests.Common.Testing;
using Umbraco.Cms.Tests.Integration.Testing;
@@ -18,4 +19,12 @@ public class LegacyScopeProviderTests : UmbracoIntegrationTest
Assert.IsInstanceOf<global::Umbraco.Cms.Core.Scoping.IScope>(scope);
}
}
[Test]
public void LegacyScopeProvider_Always_IsACoreScopeProvider()
{
var scopeProvider = GetRequiredService<global::Umbraco.Cms.Core.Scoping.IScopeProvider>();
Assert.IsInstanceOf<ICoreScopeProvider>(scopeProvider);
}
}