codeception/module-doctrine2
Codeception module for Doctrine2 that gives tests direct access to the EntityManager and DBAL connection, automatic database cleanup between tests, transaction rollbacks, and handy assertions for entities and queries.
seeInRepository, grabFromRepository, haveInRepository) and per-test cleanup, which raises the ceiling on regression coverage for data-heavy flows — a quality-gate decision, not a shipping-feature decision.For executives: This is a small, free (MIT) testing utility that lets our engineers write reliable database-backed automated tests with far less custom plumbing. It lowers the cost of building regression coverage, which directly protects release quality, and it carries minimal risk — it's a narrow, reversible dependency maintained within the Codeception ecosystem, not a platform commitment.
For engineering: The module handles Doctrine entity-manager lifecycle, fixture loading, and database isolation between Codeception tests, and exposes expressive assertions against repositories. It removes the need to maintain custom test bootstrap code, reduces flaky DB test setup, and standardizes how we write persistence tests. Main caveat: it only applies if we're on Doctrine rather than Eloquent, and we should pin versions and confirm driver coverage before rollout.
How can I help you explore Laravel packages today?