test: Smoke prüft conflict, sha256/Bytes, Schriftdatei und body_font; Lint-Zeilenlängen

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Jan-Niclas Loosen
2026-10-19 18:30:13 +02:00
co-authored by Claude Sonnet 5.5
parent f2aeb59d02
commit 7678d228e7
3 changed files with 11 additions and 5 deletions
@@ -81,7 +81,7 @@ class FontInstaller implements DiviAdapter
* @param array<string, string> $files Extension => temp file path (deleted or moved by WordPress).
* @return list<string> The extensions Divi stored – fewer than $files on a partial success.
* @throws DiviLocked When font-upload is not released – before anything is written.
* @throws RuntimeException When Divi's font list is corrupt or Divi refuses a file or the whole font; nothing is stored then.
* @throws RuntimeException When Divi's font list is corrupt or Divi refuses a file or the font; nothing is stored.
*/
public function install(string $name, array $files, string $weights, string $family): array
{
+2 -2
View File
@@ -42,8 +42,8 @@ class RemoteFileFetcher
}
/**
* Streams $url into $tmp; fetch() checks the URL itself (allows()), the caller checks the size of $tmp afterwards (a body above
* $maxBytes is cut off at $maxBytes + 1 bytes).
* Streams $url into $tmp; fetch() checks the URL itself (allows()), the caller checks the size of $tmp afterwards
* (a body above $maxBytes is cut off at $maxBytes + 1 bytes).
*
* @param string $context Names the download in the failure log, e.g. "media import".
* @return array<string, mixed>|null The response (headers, status), null when the download failed.