Fix bug in BNF ID validation

This commit is contained in:
jrenslin committed 2026-06-01 13:43:42 +02:00
1 parent 8a1c33fbc3
commit 834d06b70a
2 files changed
+16 -3

No files matched your search

+11
View File
@@ -62,6 +62,17 @@ public static function bneIdForValidationProvider():Generator {
}
/**
* Data provider for validating BNE IDs.
*
* @return Generator<string, array{0: string|false, 1: string}>
*/
public static function bnfIdForValidationProvider():Generator {
yield "Broken input / duplicate https" => [false, "https://catalogue.bnf.fr/ark:/12148/cbhttps://catalogue.bnf.fr/ark:/12148/cbhttps://catalogue.bnf.fr/ark:/12148/cb104183522"];
}
/**
* Ensure validating references to the BNE works.
*