diff --git a/src/Umbraco.Tests/Migrations/FindingMigrationsTest.cs b/src/Umbraco.Tests/Migrations/FindingMigrationsTest.cs index aa69cd590e..77c706a699 100644 --- a/src/Umbraco.Tests/Migrations/FindingMigrationsTest.cs +++ b/src/Umbraco.Tests/Migrations/FindingMigrationsTest.cs @@ -33,10 +33,12 @@ namespace Umbraco.Tests.Migrations typeof (FiveZeroMigration) }); - //This is needed because the Migration resolver is creating migratoni instances with their full ctors + var sqlSyntax = new SqlCeSyntaxProvider(); + + //This is needed because the Migration resolver is creating migration instances with their full ctors ApplicationContext.EnsureContext( new ApplicationContext( - new DatabaseContext(Mock.Of(), Mock.Of(), Mock.Of(), "test"), + new DatabaseContext(Mock.Of(), Mock.Of(), sqlSyntax, "test"), new ServiceContext(), CacheHelper.CreateDisabledCacheHelper(), new ProfilingLogger(Mock.Of(), Mock.Of())), @@ -47,11 +49,11 @@ namespace Umbraco.Tests.Migrations { CanResolveBeforeFrozen = true }; - SqlSyntaxContext.SqlSyntaxProvider = new SqlCeSyntaxProvider(); + //SqlSyntaxContext.SqlSyntaxProvider = new SqlCeSyntaxProvider(); Resolution.Freeze(); - SqlSyntaxContext.SqlSyntaxProvider = new SqlCeSyntaxProvider(); + //SqlSyntaxContext.SqlSyntaxProvider = new SqlCeSyntaxProvider(); } [Test]