Skip to content
Snippets Groups Projects
Commit 1bb4140f authored by tmortagne's avatar tmortagne
Browse files

XWIKI-9971: Disable extracting title from document content by default

parent bc89e004
No related merge requests found
......@@ -225,6 +225,8 @@ public void testGetDisplayWhenTitleExists()
public void testGetDisplayWhenNoTitleButSectionExists()
{
getConfigurationSource().setProperty("xwiki.title.compatibility", "1");
this.document.setContent("Some content\n1 Title");
this.mockVelocityEngine.expects(once()).method("evaluate").with(null, ANYTHING, ANYTHING, eq("Title"))
.will(velocityEngineEvaluateStub);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment