Updates some tests and fixes a couple things

This commit is contained in:
Shannon
2014-03-04 16:40:23 +11:00
parent 71a9fb4f68
commit 1e99c466ee
5 changed files with 31 additions and 12 deletions

View File

@@ -43,9 +43,17 @@ namespace Umbraco.Web.Install.InstallSteps
return false;
}
//we cannot run this step if the db is not configured.
if (_applicationContext.DatabaseContext.IsDatabaseConfigured == false)
try
{
//we cannot run this step if the db is not configured.
if (_applicationContext.DatabaseContext.IsDatabaseConfigured == false)
{
return false;
}
}
catch (InvalidOperationException)
{
//if there is no db context
return false;
}