N°7070 - remove _delta attribute from datamodel and avoid _delta attributes under a node having _delta in [define, define_if_not_exist, redefine, force] in deltas

This commit is contained in:
Eric Espie
2024-01-17 15:11:46 +01:00
parent 7f62bd61e3
commit cc5e105d7f
5 changed files with 51 additions and 30 deletions

View File

@@ -727,7 +727,33 @@ XML
<nodeB id="Banner">
<nodeE/>
<nodeC>
<nodeD id="Bruce" _delta="define"/>
<nodeD id="Bruce"/>
</nodeC>
</nodeB>
</nodeA>
XML
];
$aDeltas['nested _delta should be cleaned'] = [
'sInitialXML' => <<<XML
<nodeA>
</nodeA>
XML
,
'sDeltaXML' => <<<XML
<nodeA>
<nodeB id="Banner" _delta="define">
<nodeC>
<nodeD id="Bruce" _delta="define"/>
</nodeC>
</nodeB>
</nodeA>
XML
,
'sExpectedXML' => <<<XML
<nodeA>
<nodeB id="Banner">
<nodeC>
<nodeD id="Bruce"/>
</nodeC>
</nodeB>
</nodeA>