test: Task 7 review - broaden move/delete/duplicate coverage, fix outline for delete-only changes

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-09-26 15:47:01 +02:00
co-authored by Claude Opus 5.5
parent acd57c40c0
commit 17402549c5
2 changed files with 195 additions and 10 deletions
+3 -1
View File
@@ -194,7 +194,9 @@ class DiviWriter
{
$sections = [];
foreach ($change->entries() as $entry) {
$id = $entry['block'] !== null ? $index->idOf($entry['block']) : null;
// Same id resolution as the "changed" entries below: a removed node has no block
// any more, but its id from before the removal still names the (surviving) section.
$id = $entry['id'] ?? ($entry['block'] !== null ? $index->idOf($entry['block']) : null);
if ($id !== null) {
$sections[explode('.', $id)[0]] = true;
}