Skip to content

Testing

phil/trash-bundle
AreaWhat is covered
TrashItem, ResourceReference, the exceptionsEvery check and bound, times in UTC, a parent with a colon in its identifier, the mapping
TrashTrashing and restoring, a parent that is gone, retention by kind, the purge in order, events, no clock or dispatcher
PurgeTrashCommandLimits, refused limits
PhilTrashBundleServices, autoconfiguration, configuration, the mapping

A functional suite boots a kernel with FrameworkBundle, DoctrineBundle on SQLite, an Article entity and its handler: TrashBundleTest trashes, lists, restores under another parent, and purges once a moved clock passes the retention.

vendor/bin/phpunit packages/trash-bundle/tests