fix: detach meldet nicht „alles erledigt“, solange nicht lesbare Fundstellen Verweise enthalten können; PageRewriter::apply liefert hidden_count; Tests für Sperre durch nicht lesbare Seiten und post_ids über der Obergrenze
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
b805ed64dd
commit
06398242d6
@@ -45,14 +45,20 @@ final class PageRewriteReportTest extends TestCase
|
||||
* @param list<array{post_id: int, reason: string}> $skipped
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public static function applied(int $saved, int $remaining, array $skipped = []): array
|
||||
public static function applied(int $saved, int $remaining, array $skipped = [], int $hidden = 0): array
|
||||
{
|
||||
$rows = [];
|
||||
for ($i = 0; $i < $saved; ++$i) {
|
||||
$rows[] = ['post_id' => 12 + $i, 'revision_id' => 900 + $i, 'nodes' => 2];
|
||||
}
|
||||
|
||||
return ['saved' => $rows, 'remaining' => $remaining, 'warnings' => [], 'skipped' => $skipped];
|
||||
return [
|
||||
'saved' => $rows,
|
||||
'remaining' => $remaining,
|
||||
'warnings' => [],
|
||||
'skipped' => $skipped,
|
||||
'hidden_count' => $hidden,
|
||||
];
|
||||
}
|
||||
|
||||
public function testEmptyMeansNothingToWriteNothingBlockedNothingHidden(): void
|
||||
|
||||
Reference in New Issue
Block a user