Skip to content

test(default-content): write tests for Default_Content_Installer #590

Description

@superdav42

Task t489

Write unit tests for inc/installers/class-default-content-installer.php.

Current coverage: 0.5% (206 uncovered statements)
Target: ≥80% coverage

Acceptance Criteria

  • PHPUnit tests written for Default_Content_Installer 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/installers/
  • Mock WordPress content creation functions
  • Test installer methods and content setup logic

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