Merge with 6.0.6

This commit is contained in:
Shannon Deminick
2013-05-12 21:49:38 -10:00
3 changed files with 7 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ namespace Umbraco.Tests.PublishedContent
//need to specify a custom callback for unit tests
PublishedContentHelper.GetDataTypeCallback = (docTypeAlias, propertyAlias) =>
{
if (propertyAlias == "content")
if (propertyAlias.InvariantEquals("content"))
{
//return the rte type id
return Guid.Parse(Constants.PropertyEditors.TinyMCEv3);

View File

@@ -240,6 +240,10 @@ namespace Umbraco.Tests.PublishedContent
var propVal2 = doc.GetPropertyValue<IHtmlString>("content");
Assert.IsTrue(TypeHelper.IsTypeAssignableFrom<IHtmlString>(propVal2.GetType()));
Assert.AreEqual("<div>This is some content</div>", propVal2.ToString());
var propVal3 = doc.GetPropertyValue("Content");
Assert.IsTrue(TypeHelper.IsTypeAssignableFrom<IHtmlString>(propVal3.GetType()));
Assert.AreEqual("<div>This is some content</div>", propVal3.ToString());
}
[Test]

View File

@@ -147,7 +147,8 @@ namespace umbraco.cms.businesslogic
public static Guid GetDataType(string contentTypeAlias, string propertyTypeAlias)
{
var key = new System.Tuple<string, string>(contentTypeAlias, propertyTypeAlias);
//propertyTypeAlias needs to be invariant, so we will store uppercase
var key = new System.Tuple<string, string>(contentTypeAlias, propertyTypeAlias.ToUpper());
return PropertyTypeCache.GetOrAdd(