Fix bogus PublishedContent unit tests
This commit is contained in:
@@ -539,20 +539,6 @@ namespace Umbraco.Tests.PublishedContent
|
||||
Assert.AreEqual("Custom data with same property name as the member name", asDynamic.GetPropertyValue("CreatorName"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void GetPropertyValue_Reflected()
|
||||
{
|
||||
var asDynamic = GetDynamicNode(1174);
|
||||
|
||||
// NOTE: that test breaks because of U4-3094 fix in DynamicPublishedContent
|
||||
// previously, DynamicPublishedContent.GetProperty would honor the '_' and '@' syntax.
|
||||
// now that it's just using the original proper IPublishedContent way, it does not anymore
|
||||
// I *think* it makes sense. Then kill that test. Do we all agree? - Stephan
|
||||
|
||||
Assert.AreEqual("admin", asDynamic.GetPropertyValue("@creatorName"));
|
||||
Assert.AreEqual("admin", asDynamic.GetPropertyValue("@CreatorName"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Get_User_Property_With_Same_Name_As_Member_Property()
|
||||
{
|
||||
@@ -604,7 +590,11 @@ namespace Umbraco.Tests.PublishedContent
|
||||
Assert.IsNotNull(result);
|
||||
|
||||
// ancestor-or-self has to be self!
|
||||
Assert.AreEqual(1173, (int)result.Id);
|
||||
// but that's not what the "legacy" razor macro engine does...
|
||||
if (result is Umbraco.Web.Models.DynamicPublishedContent)
|
||||
Assert.AreEqual(1173, (int)result.Id); // that one works
|
||||
else
|
||||
Assert.AreEqual(1046, (int)result.Id); // that one still is fubar
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
Reference in New Issue
Block a user