Skip to content

Add PHPUnit coverage for polymorphic collection behavior and Doctrine variant #34

@javihgil

Description

@javihgil

Problem

The package now has no real PHPUnit coverage in the repository for its core behavior, and the Doctrine variant is especially exposed.

Current behavior

The component logic around discriminators, node transformation, prototype generation, and Doctrine-backed collections is largely unprotected by tests.

Expected behavior

The package should include PHPUnit coverage for:

  • non-Doctrine polymorphic collections
  • prototype generation
  • discriminator failures
  • DoctrinePolymorphicCollectionType behavior

Why it matters

This package is a critical building block for higher-level CMS features, so regressions here can affect many integrations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions