-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Add Unit Tests ass asked by @nuest here
classes/RetrieveReserveIdentifiers/CertificateIdentifierList.php
9 // get the certificate ID from the issue description
10 function getRawIdentifier(string $title): stringThe task
This is a function that we can very nicely check in a unit test, and feed it different (and incorrect) inputs, like "Author | abc | 2025-999" or "Author - 2025-001 | 2026-001 - 2026-002".
Please add a first unit test (and tell me how to add unit tests to plugins).
See https://github.com/pkp/pkp-lib/blob/main/tests/classes/plugins/PluginTest.php and maybe(!!) this also helps: https://github.com/reviewqualitycollector/ojs-rqcplugin/tree/main/tests
You can give us the first unit test, and @Subhanaliweb will create the first integration/UI test in #35