refactor: FontNameRules::check() ohne toten Reserviert-Zweig; Kollision bleibt taken()/409

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Jan-Niclas Loosen
2026-10-19 18:28:23 +02:00
co-authored by Claude Sonnet 5.5
parent bfe6623fe8
commit 15cffedb9f
4 changed files with 29 additions and 30 deletions
@@ -308,6 +308,14 @@ final class DiviFontsUploadAbilityTest extends TestCase
self::assertSame([], $this->fetches);
}
public function testAMalformedNameIsAFieldErrorNotAConflict(): void
{
$result = $this->ability(catalog: self::catalog(['Open Sans']))->execute(self::input(['name' => 'Open Sans!']));
self::assertToolError($result, 'validation_failed');
self::assertArrayHasKey('name', self::errorFields($result));
}
public function testTheDryRunDownloadsAndChecksEveryFileAndAsksForConfirmation(): void
{
$installer = self::installer();