Fix legacy scope provider no longer implementing ICoreScopeProvider (#12480)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user