Skip to content

Add first Unit tests #70

@dxL1nus

Description

@dxL1nus

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): string

The 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions