Skip to content

test(api): improve API class test coverage #588

Description

@superdav42

Task t484

Improve test coverage for inc/class-api.php.

Current coverage: 6.6% (199 uncovered statements)
Target: ≥80% coverage

Acceptance Criteria

  • PHPUnit tests written for API class
  • Coverage reaches ≥80% for this file
  • All tests pass in CI (PHP 8.2, 8.3, 8.4, 8.5)
  • No regressions in existing test suite

How

  • Create test file at tests/unit/inc/
  • Mock WordPress REST API functions
  • Test endpoint registration and request handling

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions