From 5d7ba5c842d23f9888ddae0b60f8ede0284ea3c6 Mon Sep 17 00:00:00 2001 From: Shannon Date: Mon, 14 Sep 2015 12:30:32 +0200 Subject: [PATCH] fixes tests --- src/Umbraco.Tests/Migrations/FindingMigrationsTest.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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]