Merge with 6.0.6
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user