jcr migration and infrastructure (MAGNOLIA-4157)

[MAGNOLIA-4192] test: MockNode: getParent should be aligned to JCRNode: on JCRNode returns as last root note '/' and not '/someTopNode'. '/' has depth=0 Created: 08/Jul/11  Updated: 22/Mar/12  Resolved: 08/Jul/11

Status: Closed
Project: Magnolia
Component/s: testing
Affects Version/s: None
Fix Version/s: 4.5

Type: Sub-task Priority: Major
Reporter: Christian Ringele Assignee: Daniel Lipp
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MAGNOLIA-4193 test: MockNode: should implement getD... Closed
Template:
Date of First Response:

 Description   

These test should then not be failing anymore:
info.magnolia.templating.functions.TemplatingFunctionsTest.testRootFromNode()
info.magnolia.templating.functions.TemplatingFunctionsTest.testRootFromContentMap()



 Comments   
Comment by Daniel Lipp [ 08/Jul/11 ]

That's not really something we can implement. Setup for each test has to make sure to use proper name ("/") if one wants to create a root-node. For convenience I added a no-args constructor MockNode() that automatically creates such a node.

Generated at Mon Feb 12 03:53:31 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.