Fix bug in BNF ID validation
This commit is contained in:
@@ -62,6 +62,17 @@ final class MDNodaRepositoryTest extends TestCase {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user